You can also install js-htmlencode by using Bower.
Converts a string to an HTML-encoded string.
This is related to my other post (problem was solved).<BR><BR>I'm now thinking I'm going to have to try and bulletproof against any odd characters being imported. I can dump it to a temporary table ...