PHP Class textFormatter

Afficher le fichier Open project: peej/phpdoctor

Méthodes publiques

Méthode 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 méthode

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

toFormattedText() public méthode

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
Résultat str

toPlainText() public méthode

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