\n<$2$3" foreach (explode('
$p) { if ($c == 0) $t = $p; else { $pi = strtolower($p); if (preg_match( ",?(?:stop p|div|pre|ul|ol|li|blockquote|h[1-6r]|t(able|[rdh]|head|body|foot|extarea)|form|object|center|marquee|address|applet|iframe|d[ltd]|script|noscript|map|button|fieldset|style)\b,S", $pi, $r)) { $pos = strpos($pi, $r[0]); $t .= "
\n".substr($p,$pos); } else { $t .= '
]*>\s*)'.preg_quote(_AUTOBR."\n", ',').",iS"; $t = preg_replace($reg, '\1', $t); } return $t; }