"HI-Lab * the Social Technology" <in**@toglimi.h i-lab.net> wrote in message news:<bp******* ***@newsreader. mailgate.org>.. .
Is there another function or a workaround to have same results of
html_entity_dec ode 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_exis ts('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_dec ode($string)
{
$string = strtr($string,
array_flip(get_ html_translatio n_table(HTML_EN TITIES)));
$string = preg_replace("/&#([0-9]+);/me", "chr('\\1') ", $string);
return($string) ;
}/*---html_entity_dec ode()------*/
}/*---end of html_entity_dec ode fix----------*/
---
"One who mix sports and patriotism is a barbarian"
Email: rrjanbiah-at-Y!com