Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CharacterReference.php

function CharacterReference::lookupHex

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

Parameters

$hexdec:

Return value

false|string|string[]|null

1 call to CharacterReference::lookupHex()
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 57

Class

CharacterReference
Manage entity references.

Namespace

Masterminds\HTML5\Parser

Code

public static function lookupHex($hexdec) {
    return static::lookupDecimal(hexdec($hexdec));
}
RSS feed
Powered by Drupal