Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
duh
  • Loading branch information
ralsina committed Sep 13, 2015
1 parent f090140 commit e19661c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/filters.py
Expand Up @@ -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
Expand Down

0 comments on commit e19661c

Please sign in to comment.