You are here

public static function CharacterReference::lookupHex in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/src/HTML5/Parser/CharacterReference.php \Masterminds\HTML5\Parser\CharacterReference::lookupHex()

Given a hexidecimal number, return the UTF-8 character.

2 calls to CharacterReference::lookupHex()
CharacterReferenceTest::testLookupHex in vendor/masterminds/html5/test/HTML5/Parser/CharacterReferenceTest.php
Tokenizer::decodeCharacterReference in vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php
Decode a character reference and return the string.

File

vendor/masterminds/html5/src/HTML5/Parser/CharacterReference.php, line 59

Class

CharacterReference
Manage entity references.

Namespace

Masterminds\HTML5\Parser

Code

public static function lookupHex($hexdec) {
  return static::lookupDecimal(hexdec($hexdec));
}