文章为你提供二款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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Notepad++7.3.1
Easy-to-use and free code editor

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver CS6
Visual web development tools