Should have an unescape function that undoes entity escapes, e.g. `>` to `>`. May well be written exclusively on the Haskell side.