From c4eee8b13a2c4d2b743d2763293a0b05be0ea257 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Mon, 24 Mar 2025 17:01:57 +0300 Subject: [PATCH] Fix debug JSON output --- post_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post_parser.py b/post_parser.py index fa914f7..240eaf3 100644 --- a/post_parser.py +++ b/post_parser.py @@ -304,7 +304,7 @@ class PostParser: # Add raw JSON debug output if debug is enabled if debug: debug_json = json.dumps(message, indent=2, ensure_ascii=False, default=str) - debug_json = html.escape(debug_json).replace('\n', '
').replace('\\"', '"') + debug_json = debug_json.replace('\\', '').replace('"{', '{').replace('}"', '}').replace('\n', '
') html_content.append(f'
{debug_json}
') html_content = '\n'.join(html_content) return html_content