2006-04-17から1日間の記事一覧
SmartyでオリジナルのテンプレートModifierを作る方法のメモ参考にstrip_tagsを見るとこんな。 function smarty_modifier_strip_tags($string, $replace_with_space = true) { if ($replace_with_space) return preg_replace('!<[^>]*?>!', ' ', $string); e…
SmartyでオリジナルのテンプレートModifierを作る方法のメモ参考にstrip_tagsを見るとこんな。 function smarty_modifier_strip_tags($string, $replace_with_space = true) { if ($replace_with_space) return preg_replace('!<[^>]*?>!', ' ', $string); e…