initial commit

This commit is contained in:
Davidson Gomes
2024-10-30 11:19:09 -03:00
commit 8654a31a4d
3744 changed files with 585542 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
from .nh3 import *
__doc__ = nh3.__doc__
if hasattr(nh3, "__all__"):
__all__ = nh3.__all__

View File

@@ -0,0 +1,20 @@
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: ...

Binary file not shown.

View File