admin 發表於 2023-7-18 15:47:44

strip_tags()-從字串中去除 HTML 和 PHP

strip_tags($string,allow)
說明:
$string:必填,規定要處理的字串
allow:選填,規定允許的標籤,這些標籤不會被刪除
剝去字串中的 HTML、XML 以及 PHP 的標籤
返回被剝離的字串

程式碼範例如連結

頁: [1]
查看完整版本: strip_tags()-從字串中去除 HTML 和 PHP