PHP Class textFormatter

Show file Open project: peej/phpdoctor

Public Methods

Method Description
_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.

Method Details

_removeWhitespace() public method

Removes whitespace around newlines.
public _removeWhitespace ( str $text ) : str
$text str the raw input
return str

toFormattedText() public method

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
return str

toPlainText() public method

Returns the plain text value of the string, with all formatting information removed.
public toPlainText ( str $text ) : str
$text str the raw input
return str