Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 2 additions & 3 deletions csp_bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"""

import asyncio
import html
import re
import threading
import time
from csv import reader
Expand Down Expand Up @@ -487,9 +489,6 @@ def _is_message_to_bot(self, msg: Message, backend: str) -> Tuple[bool, str, str
content = msg._parse_symphony_content(raw_content)
else:
# Manual HTML stripping for non-SymphonyMessage
import html
import re

content = raw_content
content = re.sub(r"<br\s*/?>\s*", "\n", content, flags=re.IGNORECASE)
content = re.sub(r"</p>\s*", "\n", content, flags=re.IGNORECASE)
Expand Down
Loading
Loading