* @license GPLv2 http://files.syscp.org/misc/COPYING.txt * @package Functions * @version $Id: function.html_entity_decode_complete.php 2724 2009-06-07 14:18:02Z flo $ */ /** * Calls html_entity_decode in a loop until the result doesn't differ from original anymore * * @param string The string in which the html entities should be eliminated. * @return string The cleaned string * @author Florian Lippert */ function html_entity_decode_complete($string) { while($string != html_entity_decode($string)) { $string = html_entity_decode($string); } return $string; }