is there a reverse for htmlentities()?
in php.net, it says
There is no reverse of this function. However, you can create one on your own. Here is an example of how to do this.
Example 1. Reverse of htmlentities()
<?php
function unhtmlentities ($string)
{
$trans_tbl = get_html_translation_table (HTML_ENTITIES);
$trans_tbl = array_flip ($trans_tbl);
return strtr ($string, $trans_tbl);
}
?>
could anybody give me a case why we need reverse of htmlentities() ?