Mercurial > libervia-web
diff browser/sat_browser/html_tools.py @ 1156:3048bd137aaf
server, browser: changed blog items serialisation following changes in backend
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 23 Feb 2019 21:03:21 +0100 |
parents | 2af117bfe6cc |
children |
line wrap: on
line diff
--- a/browser/sat_browser/html_tools.py Fri Feb 22 18:50:33 2019 +0100 +++ b/browser/sat_browser/html_tools.py Sat Feb 23 21:03:21 2019 +0100 @@ -29,7 +29,6 @@ """Naive sanitization of HTML""" return html.replace('<', '<').replace('>', '>') - def html_strip(html): """Strip leading/trailing white spaces, HTML line breaks and sequences.""" JS("""return html.replace(/(^(<br\/?>| |\s)+)|((<br\/?>| |\s)+$)/g, "");""")