Actually, looking into one of the file you gave: class.format.php, there's this code from line 64 to 87:
//Format text for display..
function display($text) {
global $cfg;
$text=Format:($text); //take care of html special chars
if($cfg && $cfg->clickableURLS() && $text)
$text=Format:($text);
return nl2br($text);
}
function striptags($string) {
return strip_tags(html_entity_decode($string)); //strip all tags ...no mercy!
}
//make urls clickable. Mainly for display
function clickableurls($text) {
$text=eregi_replace('(((f|ht){1}tp(s?)://)+)','<a href="\\1" target="_blank">\\1</a>', $text);
$text=eregi_replace("(^|)(www\.(+(\.+)+)(*)*)",
'\\1<a href="http://\\2" target="_blank">\\2</a>', $text);
$text=eregi_replace("(^|)(+@(+\.)+{2,4})",'\\1<a href="mailto:\\2" target="_blank">\\2</a>', $text);
return $text;
}
Maybe I'm shooting in the dark - maybe it's there, I'm just not familiar with regex and string manipulations... anyone familiar with php?