mirror of
https://github.com/EvolutionAPI/evolution-client-python.git
synced 2025-07-14 01:41:23 -06:00
21 lines
789 B
Python
21 lines
789 B
Python
from typing import Callable, Dict, Optional, Set
|
|
|
|
ALLOWED_TAGS: Set[str]
|
|
ALLOWED_ATTRIBUTES: Dict[str, Set[str]]
|
|
|
|
def clean(
|
|
html: str,
|
|
tags: Optional[Set[str]] = None,
|
|
clean_content_tags: Optional[Set[str]] = None,
|
|
attributes: Optional[Dict[str, Set[str]]] = None,
|
|
attribute_filter: Optional[Callable[[str, str, str], Optional[str]]] = None,
|
|
strip_comments: bool = True,
|
|
link_rel: Optional[str] = "noopener noreferrer",
|
|
generic_attribute_prefixes: Optional[Set[str]] = None,
|
|
tag_attribute_values: Optional[Dict[str, Dict[str, Set[str]]]] = None,
|
|
set_tag_attribute_values: Optional[Dict[str, Dict[str, str]]] = None,
|
|
url_schemes: Optional[Set[str]] = None,
|
|
) -> str: ...
|
|
def clean_text(html: str) -> str: ...
|
|
def is_html(html: str) -> bool: ...
|