SkillAgentSearch skills...

JSanity

A secure-by-default, performance, cross-browser client-side HTML sanitization library

Install / Use

/learn @microsoft/JSanity
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

jSanity

A secure-by-default, performant, cross-browser client-side HTML sanitization library.

Reference:<br> OWASP AppSec EU 2013 Talk<br> Slides<br>

Status

2/18/2016: @kh9n has completed a significant refactoring.

  • jQuery and setImmediate dependencies were removed!
  • jSanity now supports both sync and async modes.
  • Version rev'd to 0.3.

Demo / Benchmark pages

Demo<br> Benchmark

Todo

  • Support for more elements and attributes
  • Update / document the demo & benchmark pages
  • Unit tests
  • Better solution for STYLE elements
  • Integration with one or more javascript frameworks
  • Experimental override for default sanitization in various web platforms
  • Leverage newer features of the web platform (Shadow DOM, etc.)
  • Remove jQuery usage from benchmark page
  • General code clean up / modernization

Special thanks for making jSanity a reality:

  • Ben Livshits
  • Gareth Heyes
  • Loris D'Antoni
  • Mario Heiderich
  • Matt Thomlinson
  • Michael Fanning
View on GitHub
GitHub Stars252
CategoryDevelopment
Updated4mo ago
Forks37

Languages

JavaScript

Security Score

77/100

Audited on Nov 25, 2025

No findings