Lucee Function Reference
Function ESAPIENCODE
Encodes the given string for safe output to stop Cross Site Scripting attacks.
Example
esapiencode(string encodeFor,string string):string
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
encodeFor | string | Yes |
encode for what, valid values are: |
string | string | Yes | string to encode |