HTML is not being displayed

Asked

Viewed 77 times

0

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

I noticed that the TWIG is quotation marks at the beginning and end of the text.

How do I display the HTML original?

I’m wearing it like this: {{ texto|raw }}.

And the way out is kind of like this:

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

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

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

1 answer

2

I decided using the htmlspecialchars_decode(); before sending to TWIG.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.