Location: PHPKode > projects > QuickSkin > QuickSkin_v5.0/_lib/qx/qx_entity_decode.php
<?php
  /**
  * QuickSkin Extension entity_decode
  * Convert all HTML entities to their applicable characters
  *
  * Usage Example:
  * Content:  $template->assign('MESSAGE', 'Nicht m&ouml;glich!');
  * Template: <a href="alert('{entity_decode:MESSAGE}');">Alert</a>
  * Result:   <a href="alert('Nicht m?lich!');">Alert</a>
  *
  * @author Andy Prevost hide@address.com - original by Philipp v. Criegern hide@address.com
  */
  function qx_entity_decode ( $param ) {
    $param  =  strtr($param, array_flip(get_html_translation_table(HTML_ENTITIES)));
    $param  =  preg_replace("/&#([0-9]+);/me", "chr('\\1')", $param);
    return $param;
  }

?>
Return current item: QuickSkin