json-escape Escapes HTML for JSON output jsonEscape = require './json-escape.coffee' htmlToEscape = jsonEscape(html) Sources JSON-js http://bernhardhaeussner.de/odd/json-escape/