EncodeForHTML
Encodes the input string for safe output in the body of a HTML tag.
The encoding in meant to mitigate Cross Site Scripting (XSS) attacks. This function can provide more protection from XSS than the HTMLEditFormat or XMLFormat functions do.
Method Signature
Arguments
Argument | Type | Required | Description | Default |
---|---|---|---|---|
|
|
| The string to encode. | |
|
|
| If set to true, canonicalization happens before encoding. If set to false, the given input string will just be encoded. |
|
Examples
Related
Last updated