Skip to content

Commit 56c26e7

Browse files
committed
added ul tags for corretly render in FE
1 parent ca8b54a commit 56c26e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

v2_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ def remove_unmatched_tags(text):
9696
# Remove extra unmatched angle brackets
9797
cleaned_text = re.sub(r'>+', '>', cleaned_text)
9898
cleaned_text = re.sub(r'<+', '<', cleaned_text)
99+
100+
#For front end renders add ul tags
101+
if not cleaned_text.strip().startswith("<ul>"):
102+
return f"<ul>{text}</ul>"
99103

100104
return cleaned_text
101105

0 commit comments

Comments
 (0)