Class ConfluenceHtmlAnnotationEscaper
- java.lang.Object
-
- com.atlassian.velocity.htmlsafe.introspection.AnnotatedReferenceHandler
-
- com.atlassian.velocity.htmlsafe.HtmlAnnotationEscaper
-
- com.atlassian.confluence.velocity.htmlsafe.ConfluenceHtmlAnnotationEscaper
-
- All Implemented Interfaces:
org.apache.velocity.app.event.EventHandler
,org.apache.velocity.app.event.ReferenceInsertionEventHandler
@Deprecated public class ConfluenceHtmlAnnotationEscaper extends com.atlassian.velocity.htmlsafe.HtmlAnnotationEscaper
Deprecated.since 6.5. Remove when we no longer supportHtmlSafe
.AReferenceInsertionEventHandler
that HTML encodes any value not annotated as being HtmlSafe.It also excludes some references from escaping based on name:
- Those ending in "html"
- xHtmlContent
- body
- head
-
-
Constructor Summary
Constructors Constructor Description ConfluenceHtmlAnnotationEscaper()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
shouldEscape(String referenceName, Object value, Collection<Annotation> annotations)
Deprecated.-
Methods inherited from class com.atlassian.velocity.htmlsafe.HtmlAnnotationEscaper
annotatedValueInsert
-
-
-
-
Method Detail
-
shouldEscape
protected boolean shouldEscape(String referenceName, Object value, Collection<Annotation> annotations)
Deprecated.- Overrides:
shouldEscape
in classcom.atlassian.velocity.htmlsafe.HtmlAnnotationEscaper
-
-