Change API name from js.text.Encoder.encodeHTML to js.text.Escaper.escapeHTML.