This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngSanitize should preserve data attributes #13112
Open
Description
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.
Any support for this?