TPLix

No results for ""

Strip Tags

2 min read Jun 2, 2026
--- title: strip_tags autoseo: enabled: true theme: learn2 child_type: default admin: children_display_order: collection visible: true ---

strip_tags — This strips out HTML markup tags, basically anything between < and >.

Basic Usage:
{$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.

Leave a Comment

Not published. Used to notify you on approval.

Comments are moderated before appearing.