Closed alexandre-roitman closed 7 years ago
@leizongmin can you assist?
You can specify a custom onIgnoreTag
method to do such things.
Refer to https://github.com/leizongmin/js-xss/blob/master/lib/default.js#L315 and https://github.com/leizongmin/js-xss/blob/master/lib/xss.js#L136
When calling XSS on a self closing tag (ex: meta tag)
var result = xss('', { stripIgnoreTagBody: true });
result will be '[removed]'
Can this issue be handled?