A javascript library for encoding and decoding html entities