ColdBox Platform Version 2.6.3

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.


Constructor Summary
init(any controller)
 
Method Summary
 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
 
Methods inherited from class coldbox.system.plugin
getPluginDescription, getPluginName, getPluginVersion, getpluginPath, setPluginDescription, setPluginName, setPluginVersion
 
Methods inherited from class coldbox.system.frameworkSupertype
abort, announceInterception, dump, getColdboxOCM, getDatasource, getDebugMode, getHash, getInstance, getInterceptor, getMailSettings, getModel, getMyPlugin, getPlugin, getResource, getSetting, getSettingStructure, getSettingsBean, getcontroller, getfwLocale, htmlhead, include, includeUDF, locateDirectoryPath, locateFilePath, persistVariables, populateModel, relocate, renderExternalView, renderView, rethrowit, runEvent, setDebugMode, setNextEvent, setNextRoute, setSetting, setcontroller, settingExists, throw
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(any 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.3