1 from collections.abc import Container, Iterable
4 from bleach.linkifier import DEFAULT_CALLBACKS as DEFAULT_CALLBACKS, Linker as Linker, _Callback
5 from bleach.sanitizer import (
6 ALLOWED_ATTRIBUTES as ALLOWED_ATTRIBUTES,
7 ALLOWED_PROTOCOLS as ALLOWED_PROTOCOLS,
8 ALLOWED_STYLES as ALLOWED_STYLES,
9 ALLOWED_TAGS as ALLOWED_TAGS,
14 __all__ = ["clean", "linkify"]
18 VERSION: Any # packaging.version.Version
22 tags: Container[str] = ...,
23 attributes: _Attributes = ...,
24 styles: Container[str] = ...,
25 protocols: Container[str] = ...,
27 strip_comments: bool = ...,
30 text: str, callbacks: Iterable[_Callback] = ..., skip_tags: Container[str] | None = ..., parse_email: bool = ...