PHP Class HTMLPurifier_Injector_AutoParagraph, yii

Inheritance: extends HTMLPurifier_Injector
Mostra file Open project: yiisoft/yii

Public Properties

Property Type Description
$name
$needed

Public Methods

Method Description
handleElement ( HTMLPurifier_Token &$token )
handleText ( HTMLPurifier_Token_Text &$token )

Private Methods

Method Description
_checkNeedsP ( HTMLPurifier_Token $current ) : boolean Determines if a particular token requires an earlier inline token to get a paragraph. This should be used with _forwardUntilEndToken
_isInline ( HTMLPurifier_Token $token ) : boolean Returns true if passed token is inline (and, ergo, allowed in paragraph tags)
_pLookAhead ( ) : boolean Looks ahead in the token list and determines whether or not we need to insert a

tag.

_pStart ( ) : HTMLPurifier_Token_Start
_splitText ( string $data, HTMLPurifier_Token[] &$result ) Splits up a text in paragraph tokens and appends them to the result stream that will replace the original

Method Details

handleElement() public method

public handleElement ( HTMLPurifier_Token &$token )
$token HTMLPurifier_Token

handleText() public method

public handleText ( HTMLPurifier_Token_Text &$token )
$token HTMLPurifier_Token_Text

Property Details

$name public_oe property

public $name

$needed public_oe property

public $needed