note 84623 added to function.get-html-translation-table

From: Date: Tue, 22 Jul 2008 15:18:30 +0000
Subject: note 84623 added to function.get-html-translation-table
Groups: php.notes 
Request: Send a blank email to php-notes+get-142498@lists.php.net to get a copy of this message
I found this useful in converting latin characters function convertLatin1ToHtml($str) { $allEntities = get_html_translation_table(HTML_ENTITIES, ENT_NOQUOTES); $specialEntities = get_html_translation_table(HTML_SPECIALCHARS, ENT_NOQUOTES); $noTags = array_diff($allEntities, $specialEntities); $str = strtr($str, $noTags); return $str; } ---- Server IP: 69.147.83.197 Probable Submitter: 99.3.78.164 ---- Manual Page -- http://www.php.net/manual/en/function.get-html-translation-table.php Edit -- https://master.php.net/note/edit/84623 Del: integrated -- https://master.php.net/note/delete/84623/integrated Del: useless -- https://master.php.net/note/delete/84623/useless Del: bad code -- https://master.php.net/note/delete/84623/bad+code Del: spam -- https://master.php.net/note/delete/84623/spam Del: non-english -- https://master.php.net/note/delete/84623/non-english Del: in docs -- https://master.php.net/note/delete/84623/in+docs Del: other reasons-- https://master.php.net/note/delete/84623 Reject -- https://master.php.net/note/reject/84623 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#142498) next »