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