0.1.1 • Published 9 years ago

script-escape v0.1.1

Weekly downloads
9
License
-
Repository
-
Last release
9 years ago

script-escape

Prevent XSS attacks by safely escaping values for use in <script> tags.

var escape = require('script-escape');

// Safety first!
escape(JSON.stringify({ test: '</script>' }));
0.1.1

9 years ago

0.1.0

9 years ago