View Single Post
Old 11-24-2003, 03:39 AM   #1
renehaentjens
Orange Mole
 
Join Date: Nov 2003
Posts: 69
Hex htmlentities

I'm checking a couple of things in phpDig 1.6.4.

In robot_functions.php, the function phpdigCleanHtml has a line:
Quote:
$text = ereg_replace('&#([0-9]+);',chr('\1').' ',$text);
I guess that this line recognises entities such as ' & # 233; ' as being lowercase e with acute accent.

I see no code to recognise equivalent entities such as ' & # x e9; '. If these hex entities aren't currently recognised, could the code be added to recognise them?
__________________
René Haentjens, Ghent University
renehaentjens is offline   Reply With Quote