Decodes html entities.
Encodes html entities.
This is a little more full featured than html.escape, as it will replace all charactes from codepoint2name.