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
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
The list of valid element attributes does not include data attributes.
I have a use case for dynamically generating html snippets on a server which I'd like to sanitize before displaying. This puts me in a position of hacking around the issue by encoding my data within the class list (or inside some other "safe" html attribute).
I think I can create a pull request that would have htmlSanitizeWriter check for data attributes within the loop that builds the sanitized elements.