Whatever message this page gives is out now! Go check it out!
WriteOutput(string [,encodefor])Parameter | Description |
string | A string or a variable that contains one. |
encodefor | This parameter's functionality is similar to the ' encodeFor ' functions. The valid values are html , htmlattribute , url , javascript, css , xml , xmlattribute , xpath , ldap , and dn . Based on the respective value, the encoding will be applied on the input string. This parameter is optional. |
<cfscript>
// encodeFor=url
writeoutput("encoding for url: ");
writeoutput("lorem ipsum _*&%^$%&@","url");
</cfscript><cfscript>
// encodeFor=html
writeoutput("encoding for html: ");
writeoutput("lorem ipsum _*&%^$%&@","html");
</cfscript><cfscript>
// encodeFor=css
writeoutput("encoding for css: ");
writeoutput("lorem ipsum _*&%^$%&@","css");
</cfscript>