We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to Striptags allow some tag ex: <b>, <a> in Volt

Hi Pro,
I using Volt template phalcon, please help me to use striptags allow tag: b, a, .... tag
ex: {{ value|striptags('b', 'a') }}
D

Just implement such a filter if you need it.

yes. please help me a tutorial for fillter striptag

edited Oct '16

Did you even read docs ? https://docs.phalcon.io/pl/latest/reference/volt.html#filters Volt already have striptags filter built-in

https://php.net/manual/en/function.strip-tags.php

So this code:

{{ value|striptags('b', 'a') }} 

Should already work.