microcosm-cc / bluemonday

bluemonday: a fast golang HTML sanitizer (inspired by the OWASP Java HTML Sanitizer) to scrub user generated content of XSS
https://github.com/microcosm-cc/bluemonday
BSD 3-Clause "New" or "Revised" License
3.08k stars 178 forks source link

helpers: apply id and lang attr regexps to full string #198

Open matloob opened 7 months ago

matloob commented 7 months ago

The intent of the code seemed to be to allow ids and langs where the full string matches the regular expression, not just part of it.