@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public static function removeWebLinks($content, $domain) { |
| 15 | 15 | if (!empty($content)) { |
| 16 | - if(!empty($domain)) { |
|
| 16 | + if (!empty($domain)) { |
|
| 17 | 17 | $pattern = '#<a [^>]*\bhref=([\'"])http.?://((?!$domain)[^\'"])+\1 *>.*?</a>#i'; |
| 18 | 18 | $filteredString = preg_replace($pattern, '', $content); |
| 19 | 19 | } else { |