mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 22:22:40 +08:00
DEV: prettier 2.2.1 (#11862)
This commit is contained in:
@ -553,7 +553,7 @@ function pieChartConfig(data, labels, opts = {}) {
|
||||
}
|
||||
|
||||
function stripHtml(html) {
|
||||
var doc = new DOMParser().parseFromString(html, "text/html");
|
||||
let doc = new DOMParser().parseFromString(html, "text/html");
|
||||
return doc.body.textContent || "";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user