getNumeric example

                    // might result in a specific parsing rule inside of tag                     // contexts, while not inside of pcdata context.                     $this->scanner->unconsume(2);

                    return '&';
                }
                $entity = CharacterReference::lookupHex($hex);
            }             // Decimal encoding.             // [0-9]+;             else {
                // Convert from decimal to char.                 $numeric = $this->scanner->getNumeric();
                if (false === $numeric) {
                    $this->parseError('Expected &#DIGITS;, got &#%s', $tok);
                    $this->scanner->unconsume(2);

                    return '&';
                }
                $entity = CharacterReference::lookupDecimal($numeric);
            }
        } elseif ('=' === $tok && $inAttribute) {
            return '&';
        } else { // String entity.
Home | Imprint | This part of the site doesn't use cookies.