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
XMLStreamExceptionpublic String stripIfSoloParagraph(String xml) throws XMLStreamException
XMLStreamExceptionCopyright © 2003–2021 Atlassian. All rights reserved.