note 65888 added to function.htmlspecialchars-decode

From: Date: Tue, 09 May 2006 21:51:53 +0000
Subject: note 65888 added to function.htmlspecialchars-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-110968@lists.php.net to get a copy of this message
Here is how you can get this function in php < 5.1, just make sure this function is before you try and call the function. if (!function_exists('htmlspecialchars_decode')) { function htmlspecialchars_decode($str, $options="") { $trans = get_html_translation_table(HTML_SPECIALCHARS, $options); $decode = ARRAY(); foreach ($trans AS $char=>$entity) { $decode[$entity] = $char; } $str = strtr($str, $decode); return $str; } } ---- Server IP: 216.235.15.211 Probable Submitter: 64.56.130.194 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.htmlspecialchars-decode.php Edit -- http://master.php.net/note/edit/65888 Del: integrated -- http://master.php.net/note/delete/65888/integrated Del: useless -- http://master.php.net/note/delete/65888/useless Del: bad code -- http://master.php.net/note/delete/65888/bad+code Del: spam -- http://master.php.net/note/delete/65888/spam Del: non-english -- http://master.php.net/note/delete/65888/non-english Del: in docs -- http://master.php.net/note/delete/65888/in+docs Del: other reasons-- http://master.php.net/note/delete/65888 Reject -- http://master.php.net/note/reject/65888 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#110968) next »