diff --git a/changedetectionio/html_tools.py b/changedetectionio/html_tools.py index 4d660e692..7286e4c9c 100644 --- a/changedetectionio/html_tools.py +++ b/changedetectionio/html_tools.py @@ -585,6 +585,7 @@ def html_to_text(html_content: str, render_anchor_tag_content=False, is_rss=Fals html_content = re.sub(body_style_pattern, r'\1', html_content, flags=re.IGNORECASE) + text_content = get_text(html_content, config=parser_config) return text_content diff --git a/changedetectionio/tests/unit/test_html_to_text.py b/changedetectionio/tests/unit/test_html_to_text.py index 0845832b9..04b165846 100644 --- a/changedetectionio/tests/unit/test_html_to_text.py +++ b/changedetectionio/tests/unit/test_html_to_text.py @@ -363,6 +363,7 @@ class TestHtmlToText(unittest.TestCase): print(" ✓ All display:none body tag tests passed") + if __name__ == '__main__': # Can run this file directly for quick testing unittest.main()