I\'m outputting values from a database (it isn\'t really open to public entry, but it is open to entry by a user at the company -- meaning, I\'m not worried about XSS).
Folks, there is already the unescape function in JavaScript which does the unescaping for \":
unescape
\"