PHP Класс textFormatter

Показать файл Открыть проект

Открытые методы

Метод Описание
_removeWhitespace ( str $text ) : str Removes whitespace around newlines.
toFormattedText ( str $text ) : str Returns the text with all recognized formatting directives applied. Meaningful implementations are provided by subclasses.
toPlainText ( str $text ) : str Returns the plain text value of the string, with all formatting information removed.

Описание методов

_removeWhitespace() публичный Метод

Removes whitespace around newlines.
public _removeWhitespace ( str $text ) : str
$text str the raw input
Результат str

toFormattedText() публичный Метод

Returns the text with all recognized formatting directives applied. Meaningful implementations are provided by subclasses.
public toFormattedText ( str $text ) : str
$text str the raw input
Результат str

toPlainText() публичный Метод

Returns the plain text value of the string, with all formatting information removed.
public toPlainText ( str $text ) : str
$text str the raw input
Результат str