Strip tags
strip_tags — This strips out HTML markup tags, basically anything between < and >.
{$articleTitle|strip_tags}
Parameters
| Parameter Position | Type | Required | Default | Description |
|---|---|---|---|---|
| 1 | bool | No | TRUE | This determines whether the tags are replaced by ' ' or '' |
Examples:
<?php
$tplix->assign('articleTitle', "Blind Woman Gets <font face=\"helvetica\">New
Kidney</font> from Dad she Hasn't Seen in <b>years</b>.");
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.