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

Error slash with Volt template

Hi Pro,

I error with \' with Asset phalcon. I do not specialize in the \

I want to show font end: var a = '<span class="aaa">A</span>';

{% do assets.collection('footer').addInlineJs('
    var a = '\'<span class="aaa">A</span>'\';
') %}
edited May '18
{% do assets.collection('footer').addInlineJs('
    var a = \'<span class="aaa">A</span>\';
') %}

Shouldn't it be like this?

No, this error

It' workking

{% do assets.collection('footer').addInlineJs('
    var a = "<span class=\"aaa\">A</span>";
') %}