nh3
nh3 copied to clipboard
Add "tags" option to clean_text
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'})