closure-library icon indicating copy to clipboard operation
closure-library copied to clipboard

html sanitizer should not trim whitespace from data-* attributes

Open ribrdb opened this issue 7 years ago • 0 comments

Say I sanitize the string '<span data-latex="\ "></span>'. The html sanitizer will trim the whitespace, resulting in invalid latex '<span data-latex="\"></span>'.

ribrdb avatar Oct 03 '18 20:10 ribrdb