Callback to sanitize allowed attribute values for finer control #258
nikhilramabhadra
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Check out https://github.com/mganss/HtmlSanitizer/wiki/Hooks, specifically the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to allow onclick as an attribute. However, I want this as an allowed attribute only if the value of the attribute matches a white list. It would be great if you could provide a callback where I can do this.
Beta Was this translation helpful? Give feedback.
All reactions