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 apply volt filters at the time of rendering the form

i want to apply volt,output filters the elements like |e,|striptags etc....how can i do this at the time of rendering the elements

                  <div class="form-group" style="width:20%;text-align:center;">
                       {{ element.label() }}
                       {{ element.render(['class': 'form-control']) }}
                   </div>
<div class="form-group" style="width:20%;text-align:center;">
    {{ element.label()|striptags }}
</div>

This should work out-of-the-box...

Why is that if i apply filters like |escapecss |escapejs|striptags............even the spaces (" ") and decimals(.) are effected by the filters.?

before applying filters i got the output as: Employee Code after appling the filters i am getting output as :\3c label\20 for\3d \22 employeetype\5f code\22 \3e Employee\20 Code\3c \2f label\3e