| 1 |
<?php |
<?php |
| 2 |
// $Id: invisimail.module,v 1.3.4.4 2008/06/13 23:05:36 crell Exp $ |
// $Id: invisimail.module,v 1.3.4.5 2009/03/31 22:10:09 crell Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 98 |
} |
} |
| 99 |
|
|
| 100 |
function invisimail($string, $format) { |
function invisimail($string, $format) { |
| 101 |
$pattern = "!(<p>|<li>|<br />|[ \n\r\t\(])([A-Za-z0-9._-]+@[A-Za-z0-9._-]+\.[A-Za-z]{2,4})([.,]?)(?=(</p>|</li>|<br />|[ \n\r\t\)]))!i"; |
$pattern = '!(<p>|<li>|<br />|[\s\(])([A-Za-z0-9._-]+@[A-Za-z0-9._-]+\.[A-Za-z]{2,4})([.,]?)(?=(</p>|</li>|<br />|[\s/)]))!i'; |
|
|
|
| 102 |
// the callback needs to know what filter we're using |
// the callback needs to know what filter we're using |
| 103 |
// however there's no way to hand off that variable |
// however there's no way to hand off that variable |
| 104 |
// so we'll set a global variable |
// so we'll set a global variable |