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.2k stars 175 forks source link

Resolves #33 #34

Closed grafana-dee closed 8 years ago

grafana-dee commented 8 years ago

Option to add a single space in place of any tag that is removed by the sanitization process. This allows text to be presented correctly within HTML by not collapsing space when tags are removed.

i.e. "HelloWorld" would sanitize as: "HelloWorld" without this option, but as: " Hello World " with this option.