Description
Parses HTML according to the WHATWG HTML specification from Python code. It helps tools read web pages, sanitize or transform documents, and test browser-like parsing behavior.
Developers use it as a parsing library. Parsing HTML does not make content safe, so validate links, scripts, embedded resources, and user-provided markup before rendering or storing it.