Sanitize HTML using isomorphic-dompurify #1431
dgallardox
started this conversation in
Ideas
Replies: 3 comments
-
Hey @dgallardox thanks. Where do you think the framework should intervene here and sanitize the post data since the user has control over the query structure? I mean you have the option to use whatever library you want whether it is |
Beta Was this translation helpful? Give feedback.
0 replies
-
@dgallardox any thoughts here? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I will move this to a discussion to get more community feedback. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Perhaps unnecessary but always good for client to ensure what is rendered is safe!
Currently, we are just using the dangerouslySetInnerHTML without any sanitizing to ensure it is safe. Of course, we can generally assume what is coming from the WordPress side is clean but better to be safe :)
Beta Was this translation helpful? Give feedback.
All reactions