diff --git a/ox/html.py b/ox/html.py
index 8666713..28dcec1 100644
--- a/ox/html.py
+++ b/ox/html.py
@@ -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', '
')
html = add_links(html)
+ html = html.replace('\n\n', '
')
return sanitize_fragment(html)
def split_tags(string):