mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-09-24 06:15:52 +00:00
Merge branch 'large-html-to-text-error-200-blank' of github.com:dgtlmoon/changedetection.io into large-html-to-text-error-200-blank
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user