Fix: Some SPA's also set body content to display: none which breaks text output

This commit is contained in:
dgtlmoon
2026-02-17 15:38:54 +01:00
committed by GitHub
parent d8ef86a8b5
commit 954582a581
3 changed files with 94 additions and 0 deletions
@@ -347,6 +347,7 @@ class ContentProcessor:
def extract_text_from_html(self, html_content, stream_content_type):
"""Convert HTML to plain text."""
do_anchor = self.datastore.data["settings"]["application"].get("render_anchor_tag_content", False)
return html_tools.html_to_text(
html_content=html_content,
render_anchor_tag_content=do_anchor,