Tutorials References Exercises Bootcamp Menu
Sign Up Create Website Get Certified Pro

Template Filter - striptags


Remove HTML from the text:

{{ mytext|striptags }}
Run Example »

Definition and Usage

The striptags filter removes any HTML tags from the value.


{{ value|striptags }}

Template filters are defined by using a pipe | character followed by the name of the filter.