com.atlassian.confluence.xml
Class HTMLParagraphStripper

java.lang.Object
  extended by com.atlassian.confluence.xml.HTMLParagraphStripper

public class HTMLParagraphStripper
extends Object


Constructor Summary
HTMLParagraphStripper(boolean onlyIfFirstTag)
           
 
Method Summary
 String stripFirstParagraph(String html)
          Removes the first encountered paragraph from a fragment of xhtml if it is the first tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.