Class 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 support HtmlSafe.
    A ReferenceInsertionEventHandler 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 Detail

      • ConfluenceHtmlAnnotationEscaper

        public ConfluenceHtmlAnnotationEscaper()
        Deprecated.
    • Method Detail

      • shouldEscape

        protected boolean shouldEscape​(String referenceName,
                                       Object value,
                                       Collection<Annotation> annotations)
        Deprecated.
        Overrides:
        shouldEscape in class com.atlassian.velocity.htmlsafe.HtmlAnnotationEscaper