diff --git a/news_parser.js b/news_parser.js index 9fb4d55..6472152 100644 --- a/news_parser.js +++ b/news_parser.js @@ -183,6 +183,7 @@ let elements = clear_element.querySelectorAll('*'); elements.forEach(function (element) { RemoveAllAttributes(element); + element.removeAttribute('class'); if (element && element.parentNode && element.nodeName == 'DIV' && CheckRegExp(GetElementClassName, '.*(read-more|article__cover).*', element)) { element.parentNode.removeChild(element); }