Strips out markup tags, basically anything between < and >.

Optional parameters:

First - boolean variable to specify of the tags are replaced by a single space (true) or empty string (false). Default is true.

{"Scientists discover <font face='helvetica'>life</font> and <strong>water</strong> on Mars"|strip_tags}
{"Scientists discover <font face='helvetica'>life</font> and <strong>water</strong> on Mars"|strip_tags:false}


Will output

Scientists discover  life  and  water  on Mars
Scientists discover life and water on Mars

Last edited Feb 17, 2010 at 11:07 AM by JacoPretorius, version 1

Comments

No comments yet.