leizongmin / js-xss

Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
http://jsxss.com
Other
5.19k stars 630 forks source link

docs: correct empty whiteList typing in examples #222

Closed aprilandjan closed 3 years ago

aprilandjan commented 3 years ago

The whiteList config is defined as an object map actually, and its typing is described here. But some of the examples in README file use it as an empty array. So if someone copied the example codes directly, they might be curious why the type checkings fails.

This PR simply corrects these usages in docs, please have a look :)