Files
wordpress/tests/phpunit/data/html5-entities

HTML5 Entities

This directory contains the listing of HTML5 named character references and a script that can be used to create or update the optimized form for use in the HTML API.

The HTML5 specification asserts:

This list is static and will not be expanded or changed in the future.

The authoritative entities.json file comes from the WHATWG server, and is cached here in the test directory so that it doesn't need to be constantly re-downloaded.

Updating the optimized lookup class.

The html5-named-character-references.php file contains an optimized lookup map for the entities in entities.json. Run the generate-html5-named-character-references.php file to update the auto-generated Core module.

~$ php tests/phpunit/data/html5-entities/generate-html5-named-character-references.php
OK: Successfully generated optimized lookup class.