Skip to main content

Module entity

Module entity 

Source
Expand description

HTML named and numeric entity decoding.

Functions§

decode_named
Decode a named HTML entity to its character(s).
decode_numeric
Decode a numeric character reference ({ or 😀).
escape_attr
Escape HTML attribute values: &&amp;, <&lt;, >&gt;, "&quot;, '&#39;.
escape_text
Escape HTML text content: &&amp;, <&lt;, >&gt;.