Sanitizes HTML using antisamy policy rules.
getSafeHTML(inputString [, PolicyFile, throwOnError])
→ returns any
AntiSamy parameter can be set in the application scope
<cfcomponent>
<cfset this.security.antisamypolicy = "antisamy.xml">
</cfcomponent>
demonstrates usage
<cfset SafeHTML = getSafeHTML(inputHTML, "", true)>
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.