Encodes a given string for safe output in the specified context. The encoding is meant to mitigate Cross Site Scripting (XSS) attacks.
encodeFor(type, value)
→ returns string
cssdnhtmlhtmlattributejavascriptldapurlxmlxmlattributexpathPass in a tag and HTML encode the result.
encodeFor("html","<br>")
Expected Result: <br>
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.