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