Class ParagraphFilter

java.lang.Object
org.shredzone.commons.text.filter.ParagraphFilter
All Implemented Interfaces:
Function<CharSequence,​CharSequence>, TextFilter

public class ParagraphFilter extends Object implements TextFilter
A filter that detects paragraphs and surrounds them with a HTML &lt;p> container. Paragraphs are separated by empty lines. Additionally, single EOLs can be replaced with &lt;br /> tags.

This filter expects a normalized text (only LF is accepted as EOL marker, see NormalizeFilter).

Author:
Richard "Shred" Körber