Home > Backend Development > PHP Tutorial > In smarty, strip_tags first filters the html tags and then truncate intercepts the article and uses it.

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
1604 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