From eb3cc6d4634a2f84006c978045cbb997a596c146 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 9 Jul 2024 11:41:24 +0100 Subject: [PATCH] Tidy up language mapped content warnings --- utils.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils.py b/utils.py index a47c66647..95c837498 100644 --- a/utils.py +++ b/utils.py @@ -5080,6 +5080,13 @@ def harmless_markup(post_json_object: {}) -> None: for lang, content in map_dict: if not isinstance(content, str): 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']): content = remove_html(content) post_json_object['object'][map_name][lang] = \