Posted by Karin J on 09/26/07 10:03
Hi everyone
I am using a ereg_replace to strip all but certain allowed characters
from a string:
$string = ereg_replace("([^ 0-9A-Za-zŠŒŽšœžŸÀ-ÖØ-öø-þ-])","",$string);
I would like to extend this to allow HTML character references of the
form "&#number;" where number is the three or four digit code number
of the character. Examples would be "ä" and "ẽ".
I am sorry but regular expressions hurt my brain!
Thankyou in advance
Karin
Navigation:
[Reply to this message]
|