class CharacterReference

Manage entity references.

This is a simple resolver for HTML5 character reference entitites. See \Masterminds\Html5\Entities for the list of supported entities.

Methods

static  string
lookupName( string $name)

Given a name (e.g.

static 
lookupDecimal($int)

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

static 
lookupHex($hexdec)

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

Details

at line line 30
static string lookupName( string $name)

Given a name (e.g.

'amp'), lookup the UTF-8 character ('&')

Parameters

string $name The name to look up.

Return Value

string The character sequence. In UTF-8 this may be more than one byte.

at line line 48
static lookupDecimal($int)

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

Parameters

$int

at line line 59
static lookupHex($hexdec)

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

Parameters

$hexdec