In smarty, strip_tags first filters the html tags and then truncate intercepts the article and uses it.

WBOY
Release: 2016-07-29 08:43:56
Original
1558 people have browsed it

The strip_tags() function strips HTML, XML, and PHP tags.

Copy code The code is as follows:


world!"); ?>


smarty can use strip_tags to remove html Tags, including anything between < >.
For example:
index.php:

Copy code The code is as follows:


$smarty = new Smarty;
$smarty->assign('articleTitle', "Blind Woman Gets

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!