|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdom.output.XMLOutputter
org.xwiki.xml.html.HTMLUtils.XWikiXMLOutputter
public static class HTMLUtils.XWikiXMLOutputter
JDOM's XMLOutputter class converts reserved XML characters (<, >, ' , &, \r and \n) into their entity format (<, > ' & and \r\n). However since we're using HTML Cleaner (http://htmlcleaner.sourceforge.net/) and since it's buggy for character escapes we have turned off character escaping for it and thus we need to perform selective escaping here.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jdom.output.XMLOutputter |
|---|
org.jdom.output.XMLOutputter.NamespaceStack |
| Field Summary |
|---|
| Fields inherited from class org.jdom.output.XMLOutputter |
|---|
currentFormat, preserveFormat |
| Constructor Summary | |
|---|---|
HTMLUtils.XWikiXMLOutputter(org.jdom.output.Format format,
boolean omitDocType)
|
|
| Method Summary | |
|---|---|
java.lang.String |
escapeAttributeEntities(java.lang.String text)
|
java.lang.String |
escapeElementEntities(java.lang.String text)
|
protected void |
printDocType(java.io.Writer out,
org.jdom.DocType docType)
|
| Methods inherited from class org.jdom.output.XMLOutputter |
|---|
clone, getFormat, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, outputElementContent, outputElementContent, outputString, outputString, outputString, outputString, outputString, outputString, outputString, outputString, outputString, printAttributes, printCDATA, printComment, printDeclaration, printElement, printEntityRef, printProcessingInstruction, printText, setFormat, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLUtils.XWikiXMLOutputter(org.jdom.output.Format format,
boolean omitDocType)
format - the JDOM class used to control output formats, see FormatomitDocType - if true then omit the document type when printing the W3C DocumentXMLOutputter.XMLOutputter(Format)| Method Detail |
|---|
public java.lang.String escapeElementEntities(java.lang.String text)
escapeElementEntities in class org.jdom.output.XMLOutputterXMLOutputter.escapeElementEntities(String)public java.lang.String escapeAttributeEntities(java.lang.String text)
escapeAttributeEntities in class org.jdom.output.XMLOutputterXMLOutputter.escapeAttributeEntities(String)
protected void printDocType(java.io.Writer out,
org.jdom.DocType docType)
throws java.io.IOException
printDocType in class org.jdom.output.XMLOutputterjava.io.IOExceptionXMLOutputter.printDocType(java.io.Writer, org.jdom.DocType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||