Skip to content
Closed
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
2 changes: 1 addition & 1 deletion gateway/platforms/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def _img(m: re.Match) -> str:
# match, since that's how comparisons read.
# * ``a`` additionally needs ``href=``/``name=`` or an actual ``<a>``/``</a>``.
# * Any well-formed *closing* tag (``</p>``) also counts.
_HTML_TAGS = r"html|body|div|br|h[1-6]|ul|ol|li|table|tr|td|th|span|strong|em|b|i|p|img|pre|code|blockquote"
_HTML_TAGS = r"html|body|div|br|hr|h[1-6]|ul|ol|li|table|tr|td|th|span|strong|em|b|i|p|img|pre|code|blockquote"
_HTML_CLOSE_TAGS = r"html|body|div|p|h[1-6]|a|ul|ol|li|table|tr|td|th|span|strong|em|b|i|pre|code|blockquote"
_HTML_BODY_RE = re.compile(
rf"<\s*(?:{_HTML_TAGS})\s*/?>" # <tag> or <tag/>
Expand Down
Loading