But what if
$message = "<font>This</font> is my new font";
$word="font";
?
Your code
$message = eregi_replace($word,"<font color=\"#FFF333\">$word</font>",$message);
would output
<<font color="#FFF333">font</font>>This</<font color="#FFF333">font</font>> is m
y new <font color="#FFF333">font</font>
but suntra wants:
<font>This</font> is my new <font color="#FFF333">font</font>
i.e. suntra doesn't want the font tag to be highlighted. But he also wants it to be general, i.e. the code would have to ignore any tag, not just the font tag.
Diego