public class HTMLParagraphStripper extends Object
Constructor and Description |
---|
HTMLParagraphStripper(XMLOutputFactory xmlOutputFactory,
XmlEventReaderFactory xmlEventReaderFactory) |
Modifier and Type | Method and Description |
---|---|
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.
|
public HTMLParagraphStripper(XMLOutputFactory xmlOutputFactory, XmlEventReaderFactory xmlEventReaderFactory)
public String stripFirstParagraph(String xml) throws XMLStreamException
XMLStreamException
public String stripIfSoloParagraph(String xml) throws XMLStreamException
XMLStreamException
Copyright © 2003–2017 Atlassian. All rights reserved.