nh3 icon indicating copy to clipboard operation
nh3 copied to clipboard

Add "tags" option to clean_text

Open erichaus opened this issue 1 year ago • 0 comments

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'})

erichaus avatar Sep 17 '24 03:09 erichaus