This commit is contained in:
Kovid Goyal 2024-05-20 20:39:33 +05:30
parent 33a8d70a93
commit 2986d2fec0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -409,7 +409,8 @@ def text_from_serialized_html(data, get_anchor_offset_map):
tag_map = serialized_data.tag_map tag_map = serialized_data.tag_map
ans = v'[]' ans = v'[]'
no_visit = {'script': True, 'style': True, 'title': True, 'head': True} no_visit = {'script': True, 'style': True, 'title': True, 'head': True}
ignore_text = {'img': True, 'math': True, 'rt': true, 'rp': True, 'rtc': True} ignore_text = {'img': True, 'math': True, 'rt': True, 'rp': True, 'rtc': True}
ignore_text
if tag_map: if tag_map:
stack = v'[[serialized_data.tree[2], False]]' stack = v'[[serialized_data.tree[2], False]]'
else: else: