// textarea Á¦°Å
$str = preg_replace("!!is", "[textarea]", $str);
$str = preg_replace("!!is", "[/textarea]", $str);
// script Á¦°Å
$str = preg_replace("!!is", "", $str);
// iframe Á¦°Å
$str = preg_replace("!!is", "", $str);
// meta Á¦°Å
$str = preg_replace("!!is", "", $str);
// style Á¦°Å
$str = preg_replace("!!is", "", $str);
// ¸¦ °ø¹éÀ¸·Î º¯È¯
$str = str_replace(" ", " ", $str);
// ¿¬¼ÓµÈ °ø¹éÀ» 1°³·Î º¯È¯
$str = preg_replace("/\s{2,}/", " ", $str);
// ű׾ȿ¡ style= ¼Ó¼º Á¦°Å
$str = preg_replace("/ zzstyle=([^\"\']+) /", " ", $str); // style=border:0... µû¿ÈÇ¥°¡ ¾øÀ»¶§
$str = preg_replace("/ style=(\"|\')?([^\"\']+)(\"|\')?/", "", $str); // style="border:0..." µû¿ÈÇ¥ ÀÖÀ»¶§
// ű׾ÈÀÇ width=, height= ¼Ó¼º Á¦°Å
$str = preg_replace("/ width=(\"|\')?\d+(\"|\')?/", "", $str);
$str = preg_replace("/ height=(\"|\')?\d+(\"|\')?/", "", $str);
// img ÅÂ±× ÃßÃâ src ÃßÃâ
preg_match("/]*src=[\"']?([^>\"']+)[\"']?[^>]*>/i", $str, $RESULT);
preg_match_all("/]*src=[\"']?([^>\"']+)[\"']?[^>]*>/i", $str, $RESULT);
// È£½ºÆ® ÃßÃâ
preg_match("/^(http:\/\/)?([^\/]+)/i", "http://www.naver.com", $matches);
|
|