thirdparty/htmlpurifier-4.0.0-lite/library/HTMLPurifier/Lexer/PEARSax3.php
public function closeHandler(&$parser, $name) {
        // HTMLSax3 seems to always send empty tags an extra close tag
        // check and ignore if you see it:
        // [TESTME] to make sure it doesn't overreach
        if ($this->tokens[count($this->tokens)-1] instanceof HTMLPurifier_Token_Empty) {
            return true;
        }
        $this->tokens[] = new HTMLPurifier_Token_End($name);
        return true;
    }
public function closeHandler(&$parser, $name) {
        // HTMLSax3 seems to always send empty tags an extra close tag
        // check and ignore if you see it:
        // [TESTME] to make sure it doesn't overreach
        if ($this->tokens[count($this->tokens)-1] instanceof HTMLPurifier_Token_Empty) {
            return true;
        }
        $this->tokens[] = new HTMLPurifier_Token_End($name);
        return true;
    }
public function closeHandler ( & $ parser , $ name ) { // HTMLSax3 seems to always send empty tags an extra close tag // check and ignore if you see it: // [TESTME] to make sure it doesn't overreach if ( $ this -> tokens [ count ( $ this -> tokens ) - 1 ] instanceof HTMLPurifier_Token_Empty ) { return true ; } $ this -> tokens [ ] = new HTMLPurifier_Token_End ( $ name ) ; return true ; }
Close tag event handler, interface is defined by PEAR package.
Close tag event handler interface is defined by PEAR package .