Package ortus.boxlang.modules.esapi.bifs
Class GetSafeHTML
java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.modules.esapi.bifs.GetSafeHTML
@BoxBIF
@BoxMember(type=STRING)
public class GetSafeHTML
extends ortus.boxlang.runtime.bifs.BIF
-
Field Summary
Fields inherited from class ortus.boxlang.runtime.bifs.BIF
__functionName, __isMemberExecution, asyncService, cacheService, componentService, declaredArguments, functionService, interceptorService, moduleService, runtime
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ortus.boxlang.runtime.bifs.BIF
announce, getDeclaredArguments, invoke
-
Constructor Details
-
GetSafeHTML
public GetSafeHTML()Constructor
-
-
Method Details
-
_invoke
public Object _invoke(ortus.boxlang.runtime.context.IBoxContext context, ortus.boxlang.runtime.scopes.ArgumentsScope arguments) Sanitizes HTML using antisamy policy rules. If no policy is provided, the default policy is used which is the eBay policy.Available policies are:
- anythinggoes
- ebay
- myspace
- slashdot
- tinymce
If a policy is not one of the above, it is assumed to be an absolute path to a custom policy file.
- Specified by:
_invoke
in classortus.boxlang.runtime.bifs.BIF
- Parameters:
context
- The current Box contextarguments
- The arguments passed to the function- Returns:
- The sanitized HTML
-