diff --git a/changedetectionio/html_tools.py b/changedetectionio/html_tools.py
index c8de750b0..d1b485aee 100644
--- a/changedetectionio/html_tools.py
+++ b/changedetectionio/html_tools.py
@@ -586,6 +586,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 e7befa4a8..c2391fbdc 100644
--- a/changedetectionio/tests/unit/test_html_to_text.py
+++ b/changedetectionio/tests/unit/test_html_to_text.py
@@ -452,6 +452,7 @@ class TestHtmlToText(unittest.TestCase):
print(" ✓ Tag closing validation test passed")
+
if __name__ == '__main__':
# Can run this file directly for quick testing
unittest.main()