|
||||||||||
| 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(Document document,
String parentTagName,
String elementTagName)
Remove the first element inside a parent element and copy the element's children in the parent. |
static void |
stripHTMLEnvelope(Document document)
Strip the HTML envelope if it exists. |
static String |
toString(Document document)
|
static String |
toString(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 String toString(Document document)
document - the W3C Document to transform into a String
public static String toString(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(Document document)
document - the w3c Document to strip
public static void stripFirstElementInside(Document document,
String parentTagName,
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 | |||||||||