Este substituye todos los espacios repetidos, nuevas lineas y tabs por un unico espacio u otra cadena indicada.
Nota
Si usted quiere substituir bloques de texto de un template use la función {strip}.
Example 5.18. strip
<?php
$smarty = new Smarty;
$smarty->assign('articleTitle', "Grandmother of\neight makes\t hole in one.");
$smarty->display('index.tpl');
?>
Donde index.tpl es:
{$articleTitle}
{$articleTitle|strip}
{$articleTitle|strip:" "}
Esta es la Salida:
Grandmother of eight makes hole in one. Grandmother of eight makes hole in one. Grandmother of eight makes hole in one.
