This library provides htmlencode/htmldecode functions. - ironcodev/locustjs-htmlencode ...
You can also install js-htmlencode by using Bower.