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.
  • Constructor Details

    • KeycloakSanitizerMethod

      public KeycloakSanitizerMethod()
  • Method Details

    • exec

      public Object exec(List list) throws freemarker.template.TemplateModelException
      Specified by:
      exec in interface freemarker.template.TemplateMethodModel
      Specified by:
      exec in interface freemarker.template.TemplateMethodModelEx
      Throws:
      freemarker.template.TemplateModelException