文章为你提供二款php 过滤所有HTML标记哦,他可以过滤所有的html标签啊。
文章为你提供二款php教程 过滤所有html标记哦,他可以过滤所有的html标签啊。
//去除html标记
function text2html($txt){
$txt = str_replace(" "," ",$txt);
$txt = str_replace(" $txt = str_replace(">",">",$txt);
$txt = preg_replace("/[ ]{1,}/isu","
",$txt);
return $txt;
}
//清除html标记
function clearhtml($str){
$str = str_replace(' $str = str_replace('>','>',$str);
return $str;
}

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Zend Studio 13.0.1
Powerful PHP integrated development environment

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 English version
Recommended: Win version, supports code prompts!

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
