[php-tip]PHP 모든 태그를 제거
function stripTags($str)
{ $pattern = array('/<!--(.*?)-->/s', '/<script[^>]*?>(.*?)<\/script>/is', '/<style[^>]*?>(.*?)<\/style>/is', '/<(.*?)>/s'); return preg_replace($pattern, '', $str); }