asutherland/bleach.js — pull request #5 by mcav (2013-08-21 17:02:34+00:00)
Title:  Bug 907805 - [email] Add plaintext escaping functions to bleach.js

bleach.escapePlaintextIntoElementContext neutralizes all HTML characters;
bleach.escapePlaintextIntoAttribute renders text safe for inserting into an attribute.