ColdBox Platform Version 2.6.4

coldbox.system.plugins
Class AntiSamy

WEB-INF.cftags.component
        extended by coldbox.system.FrameworkSupertype
            extended by coldbox.system.Plugin
                extended by coldbox.system.plugins.AntiSamy

public class AntiSamy
extends Plugin

OWASP AntiSamy Project that provides XSS cleanup operations to ColdBox applications


Constructor Summary
init(any controller)
 
Method Summary
 Any htmlSanitizer(string htmlData, [string policyFile='myspace'])
          clean HTML from XSS scripts using the AntiSamy project
 
Methods inherited from class coldbox.system.Plugin
getPluginDescription, getPluginName, getPluginVersion, getRequestCollection, getRequestContext, getpluginAuthor, getpluginAuthorURL, getpluginPath, setPluginDescription, setPluginName, setPluginVersion, setpluginAuthor, setpluginAuthorURL
 
Methods inherited from class coldbox.system.FrameworkSupertype
$abort, $dump, $htmlhead, $include, $rethrow, $throw, addAsset, announceInterception, getColdboxOCM, getController, getDatasource, getDebugMode, getHash, getInstance, getInterceptor, getMailSettings, getModel, getModuleSettings, getMyPlugin, getPlugin, getResource, getSetting, getSettingStructure, getSettingsBean, getfwLocale, includeUDF, locateDirectoryPath, locateFilePath, persistVariables, populateModel, relocate, renderExternalView, renderView, runEvent, setDebugMode, setNextEvent, setNextRoute, setSetting, setfwLocale, settingExists
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(any controller)

Parameters:
controller
Method Detail

htmlSanitizer

public Any htmlSanitizer(string htmlData, [string policyFile='myspace'])
clean HTML from XSS scripts using the AntiSamy project. The available policies are antisamy, ebay,myspace or slashdot

Parameters:
htmlData - The html text to sanitize
policyFile - Provide policy file to scan html. Available options are: antisamy, ebay, myspace, slashdot

ColdBox Platform Version 2.6.4