Skip to content
Permalink
Browse files
duh
  • Loading branch information
ralsina committed Sep 13, 2015
1 parent f090140 commit e19661cea8ac3bbe17de669d71a02911f2cdbe45
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/filters.py
@@ -310,7 +310,7 @@ def jsminify(data):
def _normalize_html(data):
"""Pass HTML through LXML to clean it up, if possible."""
try:
data = lxml.html.tostring(lxml.html.fragment_fromstring(data), encoding='unicode')
data = lxml.html.tostring(lxml.html.fromstring(data), encoding='unicode')
except:
pass
return data

0 comments on commit e19661c

Please sign in to comment.