public class HtmlAnnotationEscaper extends AnnotatedReferenceHandler
ReferenceInsertionEventHandler
that HTML encodes any value not annotated
as being HtmlSafe.
It also excludes some references from escaping based on name:
Constructor and Description |
---|
HtmlAnnotationEscaper() |
Modifier and Type | Method and Description |
---|---|
protected Object |
annotatedValueInsert(String referenceName,
Object value,
Collection<Annotation> annotations)
Process a reference with a collection of annotations
|
referenceInsert
protected Object annotatedValueInsert(String referenceName, Object value, Collection<Annotation> annotations)
AnnotatedReferenceHandler
annotatedValueInsert
in class AnnotatedReferenceHandler
referenceName
- name of the reference being insertedvalue
- unboxed reference valueannotations
- any annotations associated with the referenceCopyright © 2003–2016 Atlassian. All rights reserved.