\n]*)\n([^<>\n]+)\n([^<>\n]*)>/i";
$tar[] = "<\\1\\2\\3>";
$src[] = "/<([^<>\n]*)\n([^\n<>]*)>/i";
$tar[] = "<\\1\\2>";
$src[] = "/<(A|IMG)[^>]*(HREF|SRC)[^=]*=[ '\"\n]*($regex[http]|mailto:$regex[mail])[^>]*>/i";
$tar[] = "<\\1 \\2=\"\\3\">";
# replaceed @ charactor include email form in URL
$src[] = "/(http|https|ftp|telnet|news|mms):\/\/([^ \n@]+)@/i";
$tar[] = "\\1://\\2_HTTPAT_\\3";
# replaced special char and delete target
# and protected link when use html link code
$src[] = "/&(quot|gt|lt)/i";
$tar[] = "!\\1";
$src[] = "/]*)href=[\"' ]*($regex[http])[\"']*[^>]*>/i";
$tar[] = "";
$src[] = "/href=[\"' ]*mailto:($regex[mail])[\"']*>/i";
$tar[] = "HREF=\"mailto:\\2#-#\\3\">";
$src[] = "/<([^>]*)(background|codebase|src)[ \n]*=[\n\"' ]*($regex[http])[\"']*/i";
$tar[] = "<\\1\\2=\"\\4_orig://\\5\"";
# auto linked url and email address that unlinked
$src[] = "/((SRC|HREF|BASE|GROUND)[ ]*=[ ]*|[^=]|^)($regex[http])/i";
$tar[] = "\\1\\3";
$src[] = "/($regex[mail])/i";
$tar[] = "\\1";
$src[] = "/]+>(]+>)/i";
$tar[] = "\\1";
$src[] = "/<\/A><\/A>/i";
$tar[] = "";
# restored code that replaced for protection
$src[] = "/!(quot|gt|lt)/i";
$tar[] = "&\\1";
$src[] = "/(http|https|ftp|telnet|news|mms)_orig/i";
$tar[] = "\\1";
$src[] = "'#-#'";
$tar[] = "@";
$src[] = "/$regex[file]/i";
$tar[] = "\\1";
# restored @ charactor include Email form in URL
$src[] = "/_HTTPAT_/";
$tar[] = "@";
# put border value 0 in IMG tag
$src[] = "/<(IMG SRC=\"[^\"]+\")>/i";
$tar[] = "<\\1 BORDER=0>";
# If not MSIE, disable embed tag
if(!ereg("MSIE", $_SERVER['HTTP_USER_AGENT'])) {
$src[] = "/