#特定のタグを除去する機能
function removeHtmlTags($html, $tag){
$reg = '/<' .$tag .'.*?>|<\/' .$tag .'>/mis';
$escape = preg_replace($reg, '', $html);
return $escape;
}
(´﹃`)
Go to list of users who liked
More than 5 years have passed since last update.
#特定のタグを除去する機能
function removeHtmlTags($html, $tag){
$reg = '/<' .$tag .'.*?>|<\/' .$tag .'>/mis';
$escape = preg_replace($reg, '', $html);
return $escape;
}
(´﹃`)
Register as a new user and use Qiita more conveniently
Go to list of users who liked