Name Description Size
__init__.py 0
alphabeticalattributes.py Return an appropriate key for an attribute for sorting Attributes have a namespace that can be either ``None`` or a string. We can't compare the two because they're different types, so we convert ``None`` to an empty string first. 919
base.py 286
inject_meta_charset.py Injects ``<meta charset=ENCODING>`` tag into head of document 2945
lint.py Lints the token stream for errors If it finds any errors, it'll raise an ``AssertionError``. 3631
optionaltags.py Removes optional tags from the token stream 10588
sanitizer.py Deprecated from html5lib 1.1. See `here <https://github.com/html5lib/html5lib-python/issues/443>`_ for information about its deprecation; `Bleach <https://github.com/mozilla/bleach>`_ is recommended as a replacement. Please let us know in the aforementioned issue if Bleach is unsuitable for your needs. 26885
whitespace.py Collapses whitespace except in pre, textarea, and script elements 1214