HTML entity encoder and decoder

Encode special HTML characters or decode common and numeric entities.