Home > Web Front-end > HTML Tutorial > 今天发现了一个截取字符串的方法,不同于其他的截取。适用于截取字符串中带html代码的_html/css_WEB-ITnose

今天发现了一个截取字符串的方法,不同于其他的截取。适用于截取字符串中带html代码的_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-21 09:05:25
Original
1426 people have browsed it

很简单的一句话:


hzhenn.replaceAll(']+>','')不编译html代码,substring截取,escape是指是否编译HTML代码

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template