With native php I extract from a database a text that contains the typical text, images, videos etc.
I'm migrating the web and I'm using Symfony 2
The content for example of a field in the database is as follows:
<p style="text-align:justify">
<span style="font-size:14px>hola quetal..etc</span>
<img src="servidor"..etc/>
I do the normal thing I call the controller and he performs a QUERY using the symfony method 2 createQueryBuilder
And in the view I go through the array that the QUERY returns to me:
{% for x in articles1 %}
<div class="post-article">{{x.texto}}</div>
{% endfor %}
The problem is that it returns the text, eliminating all the labels so it shows me everything as a
<p>contenido del texto sin importar si tiene mas etiqueta dentro</p>
text without showing bold, images and other links.
Do you know any way that Symfony 2 has to show me things as they are?