Package io.quarkus.qute
Class HtmlEscaper
- java.lang.Object
-
- io.quarkus.qute.HtmlEscaper
-
- All Implemented Interfaces:
ResultMapper,WithPriority
public class HtmlEscaper extends Object implements ResultMapper
-
-
Field Summary
-
Fields inherited from interface io.quarkus.qute.WithPriority
DEFAULT_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description HtmlEscaper(List<String> escapedContentTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappliesTo(TemplateNode.Origin origin, Object result)Stringmap(Object result, Expression expression)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.qute.WithPriority
getPriority
-
-
-
-
Method Detail
-
appliesTo
public boolean appliesTo(TemplateNode.Origin origin, Object result)
- Specified by:
appliesToin interfaceResultMapper- Returns:
trueif this mapper applies to the given result
-
map
public String map(Object result, Expression expression)
- Specified by:
mapin interfaceResultMapperexpression- The original expression- Returns:
- the string value
-
-