note 22242 deleted from function.htmlentities by sniper

From: Date: Thu, 02 Oct 2003 01:07:50 +0000
Subject: note 22242 deleted from function.htmlentities by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57572@lists.php.net to get a copy of this message
Note Submitter: tbreslowNOSPAM@yahoo.com ---- htmlentities does not convert ascii 255, the y-umlaut character that is part of ISO-8859-1.the function below will fix this. function DoHTMLEntities ($string) { $trans_tbl = get_html_translation_table (HTML_ENTITIES); $trans_tbl[chr(255)] = 'ÿ'; return strtr ($string, $trans_tbl); }

« previous php.notes (#57572) next »