$regex
$regex :
Perform various tasks on HTML/XML entities.
$entity_array :
Conversion mapper for entities in HTML.
Large entity conversion table. This is significantly broader in range than get_html_translation_table(HTML_ENTITIES).
This code comes from Rhizome (http://code.google.com/p/sinciput)
replaceAllEntities(string $string) : string
Replace all entities.
This will scan a string and will attempt to replace all entities with their numeric equivalent. This will not work with specialized entities.
string | $string | The string to perform replacements on. |
Returns a string that is similar to the original one, but with all entity replacements made.