Python HTML Module
HTML escaping — escape, unescape, HTMLParser. This category documents 3 Python html module entries, and each page gives you the full syntax, the parameter list, the return value, and a runnable example. The entries include: html.escape(), html.unescape(), html.parser.HTMLParser(). html.escape() converts special HTML characters (&, <, >, ", ') to HTML-safe entities. html.unescape() converts HTML entities back to characters. html.parser.HTMLParser() a push parser for HTML that calls handler methods for tags and data. HTML Module belongs to the Text & Regex group alongside Regex Module, Textwrap Module, Difflib Module, Unicodedata Module. You can also search across every category from the search page, browse the complete A–Z index, or try any example in the Python playground. Python Reference documents 978+ functions, methods, and modules across 114 categories of the standard library, and every entry in this HTML Module category follows the same format — syntax first, then what it does, the parameters it accepts, what it returns, and a working code example — so once you have read one page you can read them all.