Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

escape string for html python

import html
s = '<p>&<p>'
e = html.escape(s) # = '&lt;p&gt;&amp;&lt;p&gt;'
 
PREVIOUS NEXT
Tagged: #escape #string #html #python
ADD COMMENT
Topic
Name
1+4 =