# HG changeset patch # User Goffi # Date 1361835559 -3600 # Node ID ec37ec73741143cd4d23b31bda52b6dc4bdee92a # Parent c0b78a3af06d29da27d287cf13e838816b412bf4 browser side: html_sanitize now manage Line Feed, fixing multi-lines messages in chat widget diff -r c0b78a3af06d -r ec37ec737411 browser_side/tools.py --- a/browser_side/tools.py Sun Feb 24 18:15:38 2013 +0100 +++ b/browser_side/tools.py Tue Feb 26 00:39:19 2013 +0100 @@ -21,4 +21,4 @@ def html_sanitize(html): """Naive sanitization of HTML""" - return html.replace('<','<').replace('>','>') + return html.replace('<','<').replace('>','>').replace('\n','
')