"HI-Lab * the Social Technology" <in**@toglimi.hi-lab.net> wrote in message news:<bp**********@newsreader.mailgate.org>...
Is there another function or a workaround to have same results of
html_entity_decode in php 4.1.x?
Once I've downloaded the following code from
http://in.php.net/html_entity_decode But, they've deleted it now:-(
Anyway, in that example itself they've given the workaround for <4.3.0
(See, unhtmlentities ($string) on that page).
if (!function_exists('html_entity_decode'))
{
//Fix for older versions (<4.3.0) of PHP
//grabbed at
http://www.php.net/manual/en/functio...ity-decode.php
function html_entity_decode($string)
{
$string = strtr($string,
array_flip(get_html_translation_table(HTML_ENTITIE S)));
$string = preg_replace("/&#([0-9]+);/me", "chr('\\1')", $string);
return($string);
}/*---html_entity_decode()------*/
}/*---end of html_entity_decode fix----------*/
---
"One who mix sports and patriotism is a barbarian"
Email: rrjanbiah-at-Y!com