com.atlassian.confluence.xml
Class HTMLParagraphStripper
java.lang.Object
com.atlassian.confluence.xml.HTMLParagraphStripper
public class HTMLParagraphStripper
- extends Object
Responsible for stripping paragraph tags.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLParagraphStripper
public HTMLParagraphStripper(XMLOutputFactory xmlOutputFactory,
XmlEventReaderFactory xmlEventReaderFactory)
stripFirstParagraph
public String stripFirstParagraph(String xml)
throws XMLStreamException
- Removes the first encountered paragraph from a fragment of xhtml if it is the first tag.
- Throws:
XMLStreamException
stripIfSoloParagraph
public String stripIfSoloParagraph(String xml)
throws XMLStreamException
- Removes the first encountered paragraph from a fragment of xhtml if it is the first tag.
- Throws:
XMLStreamException
Copyright © 2003-2013 Atlassian. All Rights Reserved.