private function _checkNeedsP($current)
    {
        if ($current instanceof HTMLPurifier_Token_Start) {
            if (!$this->_isInline($current)) {
                // <div>PAR1<div>
                //      ----
                // Terminate early, since we hit a block element
                return false;
            }
        } elseif ($current instanceof HTMLPurifier_Token_Text) {
            if (strpos($current->data, "\n\n") !== false) {
                // <div>PAR1<b>PAR1\n\nPAR2
                //      ----
                return true;
            } else {
                // <div>PAR1<b>PAR1...
                //      ----
            }
        }
        return null;
    }
private function _checkNeedsP($current)
    {
        if ($current instanceof HTMLPurifier_Token_Start) {
            if (!$this->_isInline($current)) {
                // <div>PAR1<div>
                //      ----
                // Terminate early, since we hit a block element
                return false;
            }
        } elseif ($current instanceof HTMLPurifier_Token_Text) {
            if (strpos($current->data, "\n\n") !== false) {
                // <div>PAR1<b>PAR1\n\nPAR2
                //      ----
                return true;
            } else {
                // <div>PAR1<b>PAR1...
                //      ----
            }
        }
        return null;
    }
private function _checkNeedsP ( $ current ) { if ( $ current instanceof HTMLPurifier_Token_Start ) { if ( ! $ this -> _isInline ( $ current ) ) { // <div>PAR1<div> //      ---- // Terminate early, since we hit a block element return false ; } } elseif ( $ current instanceof HTMLPurifier_Token_Text ) { if ( strpos ( $ current -> data , "\n\n" ) !== false ) { // <div>PAR1<b>PAR1\n\nPAR2 //      ---- return true ; } else { // <div>PAR1<b>PAR1... //      ---- } } return null ; }
Determines if a particular token requires an earlier inline token
to get a paragraph. This should be used with _forwardUntilEndToken
@param HTMLPurifier_Token $current
@return bool
Determines if a particular token requires an earlier inline token to get a paragraph . This should be used with _forwardUntilEndToken