?? modifier.strip_tags.php
字號:
<?php/** * Smarty plugin * @package Smarty * @subpackage plugins *//** * Smarty strip_tags modifier plugin * * Type: modifier<br> * Name: strip_tags<br> * Purpose: strip html tags from text * @link http://smarty.php.net/manual/en/language.modifier.strip.tags.php * strip_tags (Smarty online manual) * @author Monte Ohrt <monte at ohrt dot com> * @param string * @param boolean * @return string */function smarty_modifier_strip_tags($string, $replace_with_space = true){ if ($replace_with_space) return preg_replace('!<[^>]*?>!', ' ', $string); else return strip_tags($string);}/* vim: set expandtab: */?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -