Whatever message this page gives is out now! Go check it out!
IsSafeHTML(inputString [, policyFile])Parameter | Description |
inputString | Required. The string to be encoded. |
policyFile | Optional. The file path for an antisamy policy file which specifies HTML rules. In case if not specified, there is a provision to set this at the application level. Else the default policy file shipped with ColdFusion will be used. |
<cfcomponent>
<cfset this.security.antisamypolicy = "antisamy.xml">
</cfcomponent><cfset inputHTML= "<img src='http://www.techsite.com/img.gif'/>">
<cfset isSafe = isSafeHTML(inputHTML)>
<cfset SafeHTML = getSafeHTML(inputHTML, "", true)>
<cfoutput>
is Safe : #
isSafe#
Safe HTML : #
SafeHTML#
</cfoutput>