diff browser_side/tools.py @ 189:67365f17069e

browser side: removed "\n" -> <br> conversion in html_sanitize, and use "white-space: pre" CSS property in chat messages instead (thx Link Mauve !).
author Goffi <goffi@goffi.org>
date Sun, 03 Mar 2013 20:44:17 +0100
parents ec37ec737411
children c2639c9f86ea
line wrap: on
line diff
--- a/browser_side/tools.py	Sun Mar 03 19:42:18 2013 +0100
+++ b/browser_side/tools.py	Sun Mar 03 20:44:17 2013 +0100
@@ -21,4 +21,4 @@
 
 def html_sanitize(html):
     """Naive sanitization of HTML"""
-    return html.replace('<','&lt;').replace('>','&gt;').replace('\n','<br>')
+    return html.replace('<','&lt;').replace('>','&gt;')