# html - pydoc - phpman

Help on package html:

## NAME
    html - General functions for HTML manipulation.

## MODULE REFERENCE
    <https://docs.python.org/3.10/library/html.html>

    The following documentation is automatically generated from the Python
    source files.  It may be incomplete, incorrect or include features that
    are considered implementation detail and may vary between Python
    implementations.  When in doubt, consult the module reference at the
    location listed above.

## PACKAGE CONTENTS
    entities
    parser

## FUNCTIONS
### escape
        Replace special characters "&", "<" and ">" to HTML-safe sequences.
        If the optional flag quote is true (the default), the quotation mark
        characters, both double quote (") and single quote (') characters are also
        translated.

### unescape
        Convert all named and numeric character references (e.g. &gt;, &#62;,
        &x3e;) in the string s to the corresponding unicode characters.
        This function uses the rules defined by the HTML 5 standard
        for both valid and invalid character references, and the list of
        HTML 5 named character references defined in html.entities.html5.

## DATA
    __all__ = ['escape', 'unescape']

## FILE
    /usr/lib/python3.10/html/__init__.py


