com.atlassian.confluence.xml
Class HTMLParagraphStripper

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

public class HTMLParagraphStripper
extends java.lang.Object

Responsible for stripping paragraph tags.


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

stripFirstParagraph

public java.lang.String stripFirstParagraph(java.lang.String xml)
                                     throws javax.xml.stream.XMLStreamException
Removes the first encountered paragraph from a fragment of xhtml if it is the first tag.

Throws:
javax.xml.stream.XMLStreamException

stripIfSoloParagraph

public java.lang.String stripIfSoloParagraph(java.lang.String xml)
                                      throws javax.xml.stream.XMLStreamException
Removes the first encountered paragraph from a fragment of xhtml if it is the first tag.

Throws:
javax.xml.stream.XMLStreamException


Copyright © 2003-2014 Atlassian. All Rights Reserved.