Josh Rosario hace 8 meses
padre
commit
a49e15048b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      main.py

+ 1 - 0
main.py

@@ -44,6 +44,7 @@ def extract_markdown_from_conversation(conversation: BeautifulSoup) -> str:
     for element in conversation.children:
         if isinstance(element, NavigableString):
             text = element.strip().replace("\n", "  \n") # Preserve single spacing
+            text = text.replace("<", "\<").replace(">", "\>") # Escape HTML tags that aren't in Code blocks
             if text:
                 md_lines.append(text)
             continue