October 2005
Intermediate to advanced
372 pages
11h 35m
English
html_entity_decode()
string html_entity_decode ( stringhtml[, intoptions[, stringcharset]] )
The html_entity_decode() function converts an &-escaped string into its original format, reversing the operation of html_entities().
$flowerpot_men = "Bill & Ben";
$safe_flowerpots = htmlentities($flowerpot_men);
// it's now "Bill & Ben"
$unsafe_flowerpots = html_entity_decode($safe_flowerpots);
// back to "Bill & Ben"