Python Forum
safe text to html - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: safe text to html (/thread-3883.html)

Pages: 1 2


RE: safe text to html - Skaperen - Jul-07-2017

(Jul-06-2017, 04:29 PM)nilamo Wrote:
(Jul-06-2017, 02:48 AM)Skaperen Wrote: s = s.replace('>','&gt')

Html entities all end with a semicolon.  :)
yes they do ... a typo bug on my part ... thanks for pointing at it

... fixed in the code!