Alex的博客

由于博客程序改版,且org域名无法备案。 故此博客不再更新,以转为新 站博文家。 https://www.32e.top



PHP 去html样式

<?php
public function($da){
$res=str_replace(array("\r\n", "\r", "\n","&amp;","nbsp;"," ","mdash;","rdquo;","ldquo;","hellip;","middot;","quot;","amp;"),"",htmlspecialchars(strip_tags($da))));
return $res;
}
?>

浏览566  评论0  Alex于 2016-12-30 10:36
发言