HTML encoding and decoding is needed for the text node parser.