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.

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-29 08:43:56
Original
1631 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
Latest Issues
smarty turns on caching garbled characters
From 1970-01-01 08:00:00
0
0
0
Why does tp use smarty template? ?
From 1970-01-01 08:00:00
0
0
0
How do you use smarty to integrate laravel5?
From 1970-01-01 08:00:00
0
0
0
Two ways to install smarty
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template