Class HtmlEscaper

java.lang.Object
io.quarkus.qute.HtmlEscaper
All Implemented Interfaces:
ResultMapper, WithPriority

public class HtmlEscaper extends Object
  • Constructor Details

    • HtmlEscaper

      public HtmlEscaper(List<String> escapedContentTypes)
  • Method Details

    • appliesTo

      public boolean appliesTo(TemplateNode.Origin origin, Object result)
      Parameters:
      origin -
      result -
      Returns:
      true if this mapper applies to the given result
    • replacementFor

      protected String replacementFor(char c)
    • map

      public String map(Object result, Expression expression)
      Specified by:
      map in interface ResultMapper
      Parameters:
      result - The result, never null
      expression - The original expression
      Returns:
      the string value