I'm having problems rendering a string (string) in HTML tags. This happens to me when using a form, which after previewing the data, but the problem is that it does not interpret the HTML tags, it just shows them to me.
The variable happened to twig in this way:
return $this->render('registro/index.html.twig', array(
'articulo' => $producto->getArticleHtml(),
));
$producto
is not more than the instance of an entity that I have previously declared, to then be able to upload to the database.
I visualize it this way in twig:
<p>{{ articulo }}</p>
Am I forgetting something? It is the first time I work with Symfony and this with pure PHP (without using any framework) worked for me without any problem.
Example of how it is displayed, with tags included:
<b>Esto es una prueba</b>