| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/bleach-stubs/ |
Upload File : |
from collections.abc import Container, Iterable
from typing_extensions import TypeAlias
from .callbacks import _Callback
from .css_sanitizer import CSSSanitizer
from .linkifier import DEFAULT_CALLBACKS as DEFAULT_CALLBACKS, Linker as Linker
from .sanitizer import (
ALLOWED_ATTRIBUTES as ALLOWED_ATTRIBUTES,
ALLOWED_PROTOCOLS as ALLOWED_PROTOCOLS,
ALLOWED_TAGS as ALLOWED_TAGS,
Cleaner as Cleaner,
_Attributes,
)
__all__ = ["clean", "linkify"]
__releasedate__: str
__version__: str
_HTMLAttrKey: TypeAlias = tuple[str | None, str] # noqa: Y047
def clean(
text: str,
tags: Iterable[str] = ...,
attributes: _Attributes = ...,
protocols: Iterable[str] = ...,
strip: bool = False,
strip_comments: bool = True,
css_sanitizer: CSSSanitizer | None = None,
) -> str: ...
def linkify(
text: str, callbacks: Iterable[_Callback] = ..., skip_tags: Container[str] | None = None, parse_email: bool = False
) -> str: ...