Content not text

main
Bob Mottram 2024-08-20 11:42:34 +01:00
parent 5ef53282ba
commit 283a0f39ea
1 changed files with 2 additions and 2 deletions

View File

@ -5208,9 +5208,9 @@ def harmless_markup(post_json_object: {}) -> None:
# take out the trash
for trash in remove_trash:
if trash in text:
if trash in content:
post_json_object['object'][map_name][lang] = \
text.replace(trash, '')
content.replace(trash, '')
# remove things which would cause display issues
if dangerous_markup(content, False, ['pre']):