Use the functions urlEncode
and urlDecode
.
Enable Global Script Protection. This is a security feature that was added in ColdFusion MX 7. It helps protect Form, URL, CGI, and Cookie scope variables from cross-site scripting attacks.
Input is stored as the user entered it, but is HTML entity encoded using the auto-escaping feature of Django's templating system.
There's currently no centralized script for encoding input. We recommend scrubbing inputs and auditing for both format and content. For output encoding, see section 4.4.2. For more information on XSS attacks, see this OWASP article.
The Server.HtmlEncode()
method can be used to convert HTML characters to a string representation a browser will not execute.
Use htmlentities()
to escape output to the browser.
It should be used with the optional 'ENT_QUOTES
' and character-set arguments. Remember to escape only filtered data.