Is the sanitizer that keeps us safe from nefarious things like <script>alert('evil here');</script> public/available?


1 Answer 1


In 2009, this was how it was done.

It'd be nice to know if Jeff has updated the public version since then; there are 53 refactorings, but none by Jeff Atwood.

  • 1
    errr.. it's at the top of the page! text -- UPDATED: July 11th to reflect all refactorings, plus optimizing for speed. Now 2x faster! ; UPDATED: Sept 1st, bugfixes ; UPDATED: May 14th, simplify and improve whitelist strictness Feb 10, 2010 at 2:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .