A robust HTML entity encoder/decoder written in JavaScript.