// ¾Ç¼ºÅÂ±× º¯È¯
function bad_tag_convert($code)
{
global $view;
global $member, $is_admin;
if ($is_admin && $member['mb_id'] != $view['mb_id']) {
//$code = preg_replace_callback("#(\<(embed|object)[^\>]*)\>(\<\/(embed|object)\>)?#i",
// embed ¶Ç´Â object ű׸¦ ¸·Áö ¾Ê´Â °æ¿ì ÇÊÅ͸µÀÌ µÇµµ·Ï ¼öÁ¤
$code = preg_replace_callback("#(\<(embed|object)[^\>]*)\>?(\<\/(embed|object)\>)?#i",
create_function('$matches', 'return "<div class=\"embedx\">º¸¾È¹®Á¦·Î ÀÎÇÏ¿© °ü¸®ÀÚ ¾ÆÀ̵ð·Î´Â embed ¶Ç´Â object ű׸¦ º¼ ¼ö ¾ø½À´Ï´Ù. È®ÀÎÇϽ÷Á¸é °ü¸®±ÇÇÑÀÌ ¾ø´Â ´Ù¸¥ ¾ÆÀ̵ð·Î Á¢¼ÓÇϼ¼¿ä.</div>";'),
$code);
}
return preg_replace("/\<([\/]?)(script|iframe|form)([^\>]*)\>?/i", "<$1$2$3>", $code);
}