Get new jQuery plugins just once a week

×

Safify-js

April 30, 2014

Safify-js | jQuery plugin for inserting raw html safer

Safify-js is a simple jQuery plugin to sanitize potentially risky HTML to safe HTML based on OWASP while leaving in safe HTML tags.

Example Code

var evil = "<h1>Headline</h1><p>This is evil: <script>alert(1);</script></p>";
$("body").safify(evil);


Created by Jamieson Becker

Download

Safify-js jQuery plugin

xss

Safify-js

Related posts:

JQslider
Squirrel-js
Month-Picker
Safify-js jQuery plugin

http://jquer.in/wp-content/uploads/2014/04/Safify-js.jpg

jQuery plugin

Sign up for our weekly newsletter.

* We won't spam you ever