method

new

new(options, characters = 100, paragraphs = 3, markup = nil)
public

Creates a new ToHtmlSnippet formatter that will cut off the input on the next word boundary after the given number of characters or paragraphs of text have been encountered.