note 56233 added to function.htmlentities

From: Date: Sun, 28 Aug 2005 09:28:03 +0000
Subject: note 56233 added to function.htmlentities
Groups: php.notes 
Request: Send a blank email to php-notes+get-94285@lists.php.net to get a copy of this message
I wrote usefull function which is support iso-8859-2 encoding with htmlentities function ;] <?php /* * Function htmlentities which support iso-8859-2 * * @param string * @return string * @author FanFataL */ function htmlentities_iso88592($string='') { $pl_iso = array('&ecirc;', '&oacute;', '&plusmn;', '&para;', '&sup3;', '&iquest;', '&frac14;', '&aelig;', '&ntilde;', '&Ecirc;', '&Oacute;', '&iexcl;', '&brvbar;', '&pound;', '&not;', '&macr;', '&AElig;', '&Ntilde;'); $entitles = get_html_translation_table(HTML_ENTITIES); $entitles = array_diff($entitles, $pl_iso); return strtr($string, $entitles); } ?> Greatings ;-) ... ---- Manual Page -- http://www.php.net/manual/en/function.htmlentities.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56233 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56233&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56233&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56233&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56233&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56233&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56233&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56233&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#94285) next »