strip_tags
Ini memotong tag markup, pada dasarnya apapun diantara
< dan >.
Teladan 5-20. strip_tags |
assign(\'articleTitle\',
"Blind Woman Gets New
Kidney from Dad she Hasn\'t Seen in years."
);
?>');
?> |
Di mana template adalah:
{$articleTitle}
{$articleTitle|strip_tags} {* same as {$articleTitle|strip_tags:true} *}
{$articleTitle|strip_tags:false} |
Akan memperlihatkan:
Blind Woman Gets <font face="helvetica">New Kidney</font> from Dad she Hasn't Seen in <b>years</b>.
Blind Woman Gets New Kidney from Dad she Hasn't Seen in years .
Blind Woman Gets New Kidney from Dad she Hasn't Seen in years. |
|
Lihat juga
replace
dan
regex_replace.