mirror of https://gitlab.com/bashrc2/epicyon
Tidy up language mapped content warnings
parent
edbded3143
commit
eb3cc6d463
7
utils.py
7
utils.py
|
@ -5080,6 +5080,13 @@ def harmless_markup(post_json_object: {}) -> None:
|
||||||
for lang, content in map_dict:
|
for lang, content in map_dict:
|
||||||
if not isinstance(content, str):
|
if not isinstance(content, str):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# tidy up language mapped content warnings
|
||||||
|
if field_name == 'summary':
|
||||||
|
post_json_object['object'][map_name][lang] = \
|
||||||
|
valid_content_warning(content)
|
||||||
|
content = post_json_object['object'][map_name][lang]
|
||||||
|
|
||||||
if dangerous_markup(content, False, ['pre']):
|
if dangerous_markup(content, False, ['pre']):
|
||||||
content = remove_html(content)
|
content = remove_html(content)
|
||||||
post_json_object['object'][map_name][lang] = \
|
post_json_object['object'][map_name][lang] = \
|
||||||
|
|
Loading…
Reference in New Issue