We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 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') }}

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


So this code:

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

Should already work.