Package org.keycloak.theme
Class KeycloakSanitizerMethod
java.lang.Object
org.keycloak.theme.KeycloakSanitizerMethod
- All Implemented Interfaces:
freemarker.template.TemplateMethodModel
,freemarker.template.TemplateMethodModelEx
,freemarker.template.TemplateModel
public class KeycloakSanitizerMethod
extends Object
implements freemarker.template.TemplateMethodModelEx
Allows sanitizing of html that uses Freemarker ?no_esc. This way, html
can be allowed but it is still cleaned up for safety. Tags and attributes
deemed unsafe will be stripped out.
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
KeycloakSanitizerMethod
public KeycloakSanitizerMethod()
-
-
Method Details
-
exec
- Specified by:
exec
in interfacefreemarker.template.TemplateMethodModel
- Specified by:
exec
in interfacefreemarker.template.TemplateMethodModelEx
- Throws:
freemarker.template.TemplateModelException
-