From 1c81f6d5742cfa660533ec9ab7f46c73bfb87310 Mon Sep 17 00:00:00 2001 From: Brigs Date: Mon, 25 May 2026 16:22:49 -0400 Subject: [PATCH] Update Deepseek_ChatMessages.py Eliminated html conversion. --- scripts/artifacts/Deepseek_ChatMessages.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/artifacts/Deepseek_ChatMessages.py b/scripts/artifacts/Deepseek_ChatMessages.py index a15cb320..ff1b55d7 100644 --- a/scripts/artifacts/Deepseek_ChatMessages.py +++ b/scripts/artifacts/Deepseek_ChatMessages.py @@ -44,7 +44,10 @@ def extract_content_from_fragments(fragments): contents.append(item.get("content", "")) full_text = "\n\n".join(contents) - + + #HTML conversion removed because LAVA will support markdown. + #HTML escape not allowed do to possible avenue for injection attacks + '''' full_text = html.unescape(full_text) rendered_html = markdown.markdown( @@ -55,11 +58,12 @@ def extract_content_from_fragments(fragments): "sane_lists" ] ) + ''' - return rendered_html + return full_text except Exception: - return html.escape(str(fragments)) + return (str(fragments)) @artifact_processor