bluemonday: a fast golang HTML sanitizer (inspired by the OWASP Java HTML Sanitizer) to scrub user generated content of XSS
BSD 3-Clause "New" or "Revised" License
3.12k
stars
176
forks
source link
Add callback function before parsing the attributes of an element #153
Open
onthegit opened 1 year ago
Add callback function before parsing the attributes of an element. It can add/modify/remove attributes.
If the callback returns nil or empty array of html attributes then the attributes will not be included in the output.