com.atlassian.confluence.xml
Class HTMLParagraphStripper

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

public class HTMLParagraphStripper
extends Object

Responsible for stripping paragraph tags.


Constructor Summary
HTMLParagraphStripper(XMLOutputFactory xmlOutputFactory, XmlEventReaderFactory xmlEventReaderFactory)
           
 
Method Summary
 String stripFirstParagraph(String xml)
          Removes the first encountered paragraph from a fragment of xhtml if it is the first tag.
 String stripIfSoloParagraph(String xml)
          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(XMLOutputFactory xmlOutputFactory,
                             XmlEventReaderFactory xmlEventReaderFactory)
Method Detail

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-2012 Atlassian. All Rights Reserved.