public class

XmlAttributeEncodingFilter

extends DefaultFilter
java.lang.Object
   ↳ org.cyberneko.html.filters.DefaultFilter
     ↳ com.atlassian.confluence.content.render.xhtml.XmlAttributeEncodingFilter

Class Overview

A Cyberneko filter to cope with a common mistake made by plugin developers in Confluence. Attribute values should be HTML encoded so values such as URLs with multiple query parameters (e.g. http://www.example.org?name=bob&hat=bowler) should have the ampersand encoded. If it isn't then a STAX parser will thing that &hat is a malformed entity definition.

Summary

[Expand]
Inherited Fields
From class org.cyberneko.html.filters.DefaultFilter
Public Constructors
XmlAttributeEncodingFilter()
Public Methods
void emptyElement(QName element, XMLAttributes attributes, Augmentations augs)
void startElement(QName element, XMLAttributes attributes, Augmentations augs)
[Expand]
Inherited Methods
From class org.cyberneko.html.filters.DefaultFilter
From class java.lang.Object
From interface org.apache.xerces.xni.XMLDocumentHandler
From interface org.apache.xerces.xni.parser.XMLComponent
From interface org.apache.xerces.xni.parser.XMLDocumentSource
From interface org.cyberneko.html.HTMLComponent

Public Constructors

public XmlAttributeEncodingFilter ()

Public Methods

public void emptyElement (QName element, XMLAttributes attributes, Augmentations augs)

Throws
XNIException

public void startElement (QName element, XMLAttributes attributes, Augmentations augs)

Throws
XNIException