
The Function Block HTML_ENCODE converts special characters into HTML codes.
Certain characters have a special meaning in HTML and should be represented as HTML code to preserve their meaning. This function returns a string where these conversions have been performed.
If the input string passed to this function and the final document use the same character set, this function is sufficient to prepare inputs for most contexts of an HTML document.
The Input defines the string to be encoded.
Returns an encoded string that includes the following characters.
| Character | Replacement |
|---|---|
| & (Ampersand) | & |
| " (Double Quotation Mark) | " |
| ' (Apostrophe) | ' |
| < (Less Than) | < |
| > (Greater Than) | > |