-
-
Notifications
You must be signed in to change notification settings - Fork 137
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
I am using this in a place where I have to parse user-given content.
I am already aware that this library is not safe, I have already implemented safeguards to ensure that non-allowed elements are not presented.
But now I have a different scenario wherein I need to be able to safely allow certain elements (like a p tag) with certain attributes (style), and disallow any JS/React events.
I've tried using the replace setup, but how do i let the rest of the parser run without interferring, while also removing those unwanted / dangerous props?
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested