I don't know if anyone else has needed the functionality to output unescaped html from an html-escaped string, but I spent this morning looking in vain on the web for a built-in or custom function to do so. So, after some research on obscure methods, I've built one...
Hope it helps anyone who needs something similar.
Sincerely,
Tom Anderson
Order amid Chaos, Inc.
Code:
function html_unescape(s) { return s.replace(/&#(\d{1,3});/g, function($0,$1){return String.fromCharCode(parseInt($1,10)); });}
Sincerely,
Tom Anderson
Order amid Chaos, Inc.