Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions scripts/artifacts/Deepseek_ChatMessages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
Expand Down
Loading