yaturbo/toolbox.py
def sanitize_turbo(html, allowed_tags=TURBO_ALLOWED_TAGS, allowed_attrs=TURBO_ALLOWED_ATTRS):
    """Sanitizes HTML, removing not allowed tags and attributes.

    :param str|unicode html:

    :param list allowed_tags: List of allowed tags.
    :param dict allowed_attrs: Dictionary with attributes allowed for tags.

    :rtype: unicode
    """
    return clean(html, tags=allowed_tags, attributes=allowed_attrs, strip=True)
def sanitize_turbo(html, allowed_tags=TURBO_ALLOWED_TAGS, allowed_attrs=TURBO_ALLOWED_ATTRS):
    return clean(html, tags=allowed_tags, attributes=allowed_attrs, strip=True)
def sanitize_turbo ( html , allowed_tags = TURBO_ALLOWED_TAGS , allowed_attrs = TURBO_ALLOWED_ATTRS ) : return clean ( html , tags = allowed_tags , attributes = allowed_attrs , strip = True )
Sanitizes HTML, removing not allowed tags and attributes.

    :param str|unicode html:

    :param list allowed_tags: List of allowed tags.
    :param dict allowed_attrs: Dictionary with attributes allowed for tags.

    :rtype: unicode
Sanitizes HTML removing not allowed tags and attributes .