html escape character python code example
Example: escape string for html python
import html
s = '<p>&<\p>'
e = html.escape(s) # = '<p>&<\p>'
import html
s = '<p>&<\p>'
e = html.escape(s) # = '<p>&<\p>'