Answers for "how to use html escape python"

1

escape string for html python

import html
s = '<p>&<p>'
e = html.escape(s) # = '&lt;p&gt;&amp;&lt;p&gt;'
Posted by: Guest on October-03-2020

Python Answers by Framework

Browse Popular Code Answers by Language