summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-08-17 21:46:18 +0300
committerAndrew Dolgov <[email protected]>2021-08-17 21:46:18 +0300
commit8f4fad21637d9ecc6350c30234a125fab4ad6c53 (patch)
treebb94cc6556023912582fca015bd2ef22755d4437 /js
parent7ef52ac5e398efbbb865083bcd0cdcd404a3889d (diff)
strip classes from outer html and a few more tags
Diffstat (limited to 'js')
-rw-r--r--js/reader.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/reader.js b/js/reader.js
index b6834ae..07c167e 100644
--- a/js/reader.js
+++ b/js/reader.js
@@ -549,7 +549,10 @@ const Reader = {
.filter((i, e) => (($(e).text().length >= MIN_LENGTH_TO_JUSTIFY) ? e : null))
.css("text-align", "justify");
- $(doc).find("a, p, span, em, i, strong, b, body, div, big, small")
+ $(doc).find("html")
+ .attr("class", "");
+
+ $(doc).find("a, p, span, em, i, strong, b, body, header, section, div, big, small")
.attr("class", "")
.css("font-family", "inherit")
.css("font-size", "inherit")