0

How can I prevent t-out from escaping my Html code?

I am trying to display an Html code on my Website. In older Odoo versions I used t-raw and it worked fine. Now in Odoo 16 t-raw is deprecated and t-out is the way to go. But t-out always escapes my code and displays it as text on my website.

This is my old code with t-raw:

<div class="row">
    ​<t t-raw="html_output"/>
</div>

Here is my new code with t-out:

<div class="row">
    ​<t t-out="html_output"/>
</div>

This is what it should look like

And this is what it's showing

How can I stop t-out from escaping my Html code?

Dragonthoughts
  • 2,180
  • 8
  • 25
  • 28
alex_pdc
  • 1
  • 1

1 Answers1

0

Having same issue, puts quotes around html content when displaying.

DavidW
  • 45
  • 9
  • 2
    Is this an answer with «put qoutes around the content» as a solution, or is this an «I have the same problem» post? – Andreas is moving to Codidact Mar 27 '23 at 17:09
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Apr 02 '23 at 09:03