Skip to content

Add "tags" option to clean_text #54

@erichaus

Description

@erichaus

Migrating from bleach and I need to be able to do the equivalent of clean_text(), but allow certain tags. Seems not possible yet?

nh3.clean_text('<span>hello <mention>moto</mention>, welcome!</span>', tags={'mention'})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions