Misago\ActionView\Helpers\TextHelper

Functions:

excerpt($text, $phrase, $radius=100, $omission='...')

Extracts an excerpt from text that matches the first instance of phrase.

highlight($text, $phrases, $highlighter='\1')

Highlights some phrases in text using the MARK tag.

pluralize($count, $singular, $plural=null)

Pluralizes a word depending on count.

simple_format($text)

Simple formatting of text. Two linefeeds make for a paragraph, and a single linefeed makes for a line break.

truncate($text, $length=30, $truncate_string='...')

Truncates a string if it's longer than length, and appends a truncate string to it.