You are here

protected static property Escaper::$htmlNamedEntityMap in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-escaper/src/Escaper.php \Zend\Escaper\Escaper::htmlNamedEntityMap

Entity Map mapping Unicode codepoints to any available named HTML entities.

While HTML supports far more named entities, the lowest common denominator has become HTML5's XML Serialisation which is restricted to the those named entities that XML supports. Using HTML entities would result in this error: XML Parsing Error: undefined entity

Type: array

File

vendor/zendframework/zend-escaper/src/Escaper.php, line 27

Class

Escaper
Context specific methods for use in secure output escaping

Namespace

Zend\Escaper

Code

protected static $htmlNamedEntityMap = array(
  34 => 'quot',
  // quotation mark
  38 => 'amp',
  // ampersand
  60 => 'lt',
  // less-than sign
  62 => 'gt',
);