Twig UTF8 Character Encoding - Symfony2

后端 未结 4 1163
青春惊慌失措
青春惊慌失措 2021-01-02 01:27

I am developing a news system for a french association\'s website with Symfony2. I\'m having troubles when it comes to displaying the accents and also HTML.

In the t

4条回答
  •  有刺的猬
    2021-01-02 01:59

    Try this, if you have in the ddbb something like this

    árbol
    
    {% autoescape %}
      {{ c.data|raw }}
    {% endautoescape %}
    

    This will show

    árbol
    

提交回复
热议问题