Skip to content

Commit

Permalink
fix regression in safe_html transform
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Jul 30, 2018
1 parent 75f2f4c commit 11a6656
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Products/PortalTransforms/transforms/safe_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -2454,7 +2454,8 @@ def strip_outer(s):
# remove all except body or outer div
if six.PY2:
result = etree.tostring(tree, encoding='utf-8').strip()
result = etree.tounicode(tree).strip()
else:
result = etree.tounicode(tree).strip()
return strip_outer(result)


Expand Down

0 comments on commit 11a6656

Please sign in to comment.