string->encodeHtmlToXml
string->encodeHtmlToXml is a member in the String Encoding group; call it on the receiver shown before the arrow.
Target
Signature
1string->encodeHtmlToXmlstring->encodeHtmlToXml is a member in the String Encoding group; call it on the receiver shown before the arrow.
string->encodeHtmlToXml is called with member syntax on a receiver value. string->encodeHtmlToXml works with text values. Normalize input at boundaries, escape at output boundaries, and keep encoding calls close to the place where the encoded text is needed.
Examples
Basic call
1string->encodeHtmlToXmlThe example shows the receiver and result shape. In templates, apply escaping at the final output boundary.