diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php
index 7eb8e230bc..f995a85e54 100644
--- a/phpgwapi/inc/class.html.inc.php
+++ b/phpgwapi/inc/class.html.inc.php
@@ -46,6 +46,32 @@
$this->phpgwapi_js_url = $GLOBALS['phpgw_info']['server']['webserver_url'].'/phpgwapi/js';
}
+ function activate_links($content)
+ {
+ // spamsaver emailaddress
+ $result = preg_replace('/mailto:([a-z0-9._-]+)@([a-z0-9_-]+)\.([a-z0-9._-]+)/i',
+ '\\1 AT \\2 DOT \\3',
+ $content);
+
+ // First match things beginning with http:// (or other protocols)
+ $NotAnchor = '(?$2$3", $result );
+
+ // Now match things beginning with www.
+ $NotAnchor = '(?$0", $result );
+ }
+
function htmlspecialchars($str)
{
return htmlspecialchars($str,ENT_COMPAT,$this->charset);