Strip

strip — This replaces all spaces, newlines and tabs with a single space, or with the supplied string.

Basic Usage:
{$articleTitle|strip}

Examples:

<?php
$tplix->assign('articleTitle', "Grandmother of\neight makes\t    hole in one.");

Where the template is:

{$articleTitle}
{$articleTitle|strip}
{$articleTitle|strip:' '}

Output:

Grandmother of
eight makes        hole in one.
Grandmother of eight makes hole in one.
Grandmother of eight makes hole in one.
Was this article helpful?