|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.xml.html.HTMLUtils
public final class HTMLUtils
HTML Utility methods.
| Nested Class Summary | |
|---|---|
static class |
HTMLUtils.XWikiXMLOutputter
JDOM's XMLOutputter class converts reserved XML characters (<, >, ' , &, \r and \n) into their entity format (<, > ' & and \r\n). |
| Method Summary | |
|---|---|
static void |
stripFirstElementInside(org.w3c.dom.Document document,
java.lang.String parentTagName,
java.lang.String elementTagName)
Remove the first element inside a parent element and copy the element's children in the parent. |
static void |
stripHTMLEnvelope(org.w3c.dom.Document document)
Strip the HTML envelope if it exists. |
static java.lang.String |
toString(org.w3c.dom.Document document)
|
static java.lang.String |
toString(org.w3c.dom.Document document,
boolean omitDeclaration,
boolean omitDoctype)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String toString(org.w3c.dom.Document document)
document - the W3C Document to transform into a String
public static java.lang.String toString(org.w3c.dom.Document document,
boolean omitDeclaration,
boolean omitDoctype)
document - the W3C Document to transform into a StringomitDeclaration - whether the XML declaration should be printed or notomitDoctype - whether the document type should be printed or not
public static void stripHTMLEnvelope(org.w3c.dom.Document document)
document - the w3c Document to strip
public static void stripFirstElementInside(org.w3c.dom.Document document,
java.lang.String parentTagName,
java.lang.String elementTagName)
document - the w3c document from which to remove the top level paragraphparentTagName - the name of the parent tag to look underelementTagName - the name of the first element to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||