-2

So I'm working on a project where I have a database that i've created with Symfony 5 and i'm using easyAdmin as a back-of

/**
 * @ORM\Column(type="text")
 */
private $description;

I try to put html code like : <p>Test</p> but the website display me : <p>Test</p> and not just Test. Is it because it's a string ? How to I manage to display just Test ?

Thanks

Locc35
  • 1
  • 1

1 Answers1

0

Use raw in twig template

{{ description|raw }}
shahidiqbal
  • 375
  • 1
  • 7