📝 Edit page
➕ Add page
HTML escape
See Escaping HTML in the Python Wiki
CGI
import cgi
s = cgi.escape( """& < >""" ) # s = "& < >"
HTML
import html
s = html.escape( """& < " ' >""" ) # s = '& < " ' >'