fix links at end of paragraph

This commit is contained in:
j 2024-03-20 12:50:11 +01:00
parent e9a5bcb890
commit 7461719e23
1 changed files with 1 additions and 1 deletions

View File

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