- - Code, Content, and Presentation
- -- PHP Server Side Scripting
- ---- Ampersand being converted to & needlessly
Readie - 10:54 am on Aug 4, 2013 (gmt 0)
For simple replacements Londrum, you should avoid using preg_replace.
str_replace('&', '&', $string);
Will accomplish the same result, whilest being significantly faster as it doesn't need to load the regex engine.
Thread source: http://www.webmasterworld.com/php/4599109.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com