com.atlassian.confluence.xml
Class HTMLParagraphStripper
java.lang.Object
com.atlassian.confluence.xml.HTMLParagraphStripper
public class HTMLParagraphStripper
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLParagraphStripper
public HTMLParagraphStripper(boolean onlyIfFirstTag)
- Parameters:
onlyIfFirstTag
- - flag indicating if the first paragraph tag should only be skipped if it
is the first tag in the fragment
stripFirstParagraph
public String stripFirstParagraph(String html)
throws XMLStreamException
- Removes the first encountered paragraph from a fragment of xhtml if it is the first tag.
- Parameters:
xhtml
-
- Returns:
-
- Throws:
XMLStreamException
Copyright © 2003-2011 Atlassian. All Rights Reserved.