html-sloppy-escaper
v0.1.0
Published
It's exactly like html-escaper but it doesn't throw with null/undefined
Downloads
270
Maintainers
Readme
html-sloppy-escaper
This is exactly the same html-escaper module, except it doesn't throw with null
or undefined
, and returns either null
or undefined
instead, when passed along.
Symbols are also transformed as string, so basically this module should never throw.
This is the result of this discussion regarding html-escaper strictness.
If you don't care about the data you pass along, this module is likely more suitable.