leizongmin / js-xss

Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
http://jsxss.com
Other
5.21k stars 630 forks source link

feat: Allow loading attribute on img #277

Closed maosmurf closed 1 year ago

maosmurf commented 1 year ago

Hello, thanks too from me for this library!

This PR allows loading attribute on imgelement, which is now considered standard in modern browsers: https://caniuse.com/loading-lazy-attr

I came across this, as this xss library is used in Grafana.

maosmurf commented 1 year ago

(closed as commit was not signed off correctly)