Re: Odd comments bug?



У Втр, 2005-06-21 у 18:37 -0400, Luke Stroven пише:
> > Does anyone have any ideas for a solution?
> Reverse what htmlspecialchars does to ampersands?
> echo str_replace('&', '&', htmlspecialchars($text));

As i know, pregs works faster, special on big $text;

echo preg_replace('/\&/mi','&',htmlspecialchars($text));


-- 
Kulyk Nazar




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]