string.encodeForCSS()
Encodes the given string for safe output in CSS to stop Cross Site Scripting attacks.
string.encodeForCSS( canonicalize=boolean )
Returns: String
Examples
colors = 'red';
writeOutput("
<style>
.color {
background-color: #colors.encodeForCss()#
}
</style>
<div>
<span class=""color"">This is encode for CSS.</span>
</div>
");