decodeCharacterReference example

/** * Consume a character and make a move. * HTML5 8.2.4.1. */
    protected function consumeData()
    {
        $tok = $this->scanner->current();

        if ('&' === $tok) {
            // Character reference             $ref = $this->decodeCharacterReference();
            $this->buffer($ref);

            $tok = $this->scanner->current();
        }

        // Parse tag         if ('<' === $tok) {
            // Any buffered text data can go out now.             $this->flushBuffer();

            $tok = $this->scanner->next();

            
Home | Imprint | This part of the site doesn't use cookies.