HTML is not showing

0

I have a field in my table that writes HTML-formatted text correctly. When I am trying to display it on the screen, via TWIG using the RAW filter, it continues to be displayed as text and not HTML p>

I noticed that TWIG is putting a quotation mark at the beginning and end of the text.

How do I display the original HTML ?

I'm using this way: {{ texto|raw }} .

And the output is something like this:

<span><p>teste</p></span>

If I ask to see the HTML code of the page, it looks like this:

"<span><p>teste</p></span>"
    
asked by anonymous 30.03.2015 / 04:29

1 answer

2

I solved using htmlspecialchars_decode(); before sending to TWIG.

    
30.03.2015 / 15:48