WTF!? preg_replace() returns null?

Friday, January 25th, 2008

On one of our sites were were running into a problem when we tried to pass HTML content from a database through an email obfuscation function to prevent spiders from scraping our clients’ emails. We quickly discovered that some of the longer pages were showing up completely blank. The () function we were using to run the obfuscation code on email addresses was returning null. After some hunting I found the answer.

(more…)