UIZE JavaScript Framework

2013 NEWS 2013-11-20 - NEW MODULE: Uize.Util.Html.Entities

The new Uize.Util.Html.Entities module defines lookup objects that map HTML entity names to character codes, and vice versa.

1. Static Properties

1.1. Uize.Util.Html.Entities.entityNameToCharCodeLookup

A lookup object, that provides a mapping between HTML entity names and the entities' corresponding character codes.

EXAMPLE

Uize.Util.Html.Entities.entityNameToCharCodeLookup.copy;    // returns 169
Uize.Util.Html.Entities.entityNameToCharCodeLookup.spades;  // returns 9824

1.2. Uize.Util.Html.Entities.charCodeToEntityNameLookup

A lookup object, that provides a mapping between HTML entity character codes and the entities' corresponding names.

EXAMPLE

Uize.Util.Html.Entities.charCodeToEntityNameLookup [169];   // returns 'copy'
Uize.Util.Html.Entities.charCodeToEntityNameLookup [9824];  // returns 'spades'

To see an example of the new Uize.Util.Html.Entities module in use, see the HTML Entities Table example.