html-entities
Last updated
Last updated
Fast html entities library.
XML entities
HTML validity and XSS attack prevention you can achieve from XmlEntities class.
All HTML entities encoding/decoding
Available classes
Supports four methods for every class:
encode — encodes, replacing characters to its entity representations. Ignores UTF characters with no entity representation.
encodeNonUTF — encodes, replacing characters to its entity representations. Inserts numeric entities for UTF characters.
encodeNonASCII — encodes, replacing only non-ASCII characters to its numeric entity representations.
decode — decodes, replacing entities to characters. Unknown entities are left as is.