static function indent($s, $level = 1, $chars = "\t") { if ($level >= 1) { $s = NString::replace($s, '#<(textarea|pre).*?</\\1#si', callback(create_function('$m', ' return strtr($m[0], " \\t\\r\\n", "\\x1F\\x1E\\x1D\\x1A"); '))); $s = NString::indent($s, $level, $chars); $s = strtr($s, "", " \t\r\n"); } return $s; }