Options object is mutated #66

darrenscerri opened this Issue Dec 19, 2016 · 2 comments


None yet

2 participants

var oldKeys = Object.keys(opts);
xss('test', opts);
var newKeys = Object.keys(opts);

oldKeys.length === newKeys.length

Re-using an opts which has stripIgnoreTag defined, will issue a warning:

Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time


Hi, I just fixed this problem in the new version xss@0.3.3, please try the latest version.

@leizongmin leizongmin added the bug label Dec 20, 2016

Looks good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment