fix links at end of paragraph

This commit is contained in:
j 2024-03-20 12:50:11 +01:00
parent e9a5bcb890
commit 7461719e23

View file

@ -392,8 +392,8 @@ def sanitize_html(html, tags=None, global_attributes=[]):
else: else:
parts[i] = escape_html(decode_html(part)) parts[i] = escape_html(decode_html(part))
html = ''.join(parts) html = ''.join(parts)
html = html.replace('\n\n', '<br/><br/>')
html = add_links(html) html = add_links(html)
html = html.replace('\n\n', '<br/><br/>')
return sanitize_fragment(html) return sanitize_fragment(html)
def split_tags(string): def split_tags(string):