PHP 클래스 textFormatter

파일 보기 프로젝트 열기: peej/phpdoctor

공개 메소드들

메소드 설명
_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