How to print twig variables inside html code

前端 未结 2 1349
伪装坚强ぢ
伪装坚强ぢ 2021-01-07 08:27

I created a variable, like this :

{% set checkboxHTML = \'\' %}
         


        
2条回答
  •  离开以前
    2021-01-07 09:17

    Alternative method to solve this is using the expanded {% set %}
    Do note when using this method, the content is considered being safe

    {% set checkboxHTML %}
        
    {% endset %}
    

    twigfiddle

提交回复
热议问题