You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If it were the oppose of stripTags wouldn't it only allow tags and nothing else? I think what you're asking for is some kind of whitelist to pass to stripTags, correct?
A whitelist to pass to stripTags would work, but seems like it would be confusing to pass it either a list of tags to strip or a whitelist of tags not to strip. Having a separate method whose only purpose is to strip everything except the tags you pass in seemed clearer to me. I'd like to open a pull request in the future, but I don't have time at the moment.
Enhancement: It would be handy if there was an method to white list tags you want to keep. Essentially the opposite of stripTags().
The text was updated successfully, but these errors were encountered: