I've got a simple blog application written in Symfony3, I'm using TinyMCE as a my text editor. I'm storing data in database, where example record looks like this:
<p>Lorem ipsum</p>
I get articles from DB using this method:
/**
* @Template
*/
public function adminAction()
{
$repository = $this->getDoctrine()->getRepository('BlogBundle:Post');
$lastPosts = $repository->findBy(
array(),
array('id' => 'DESC'), 4
);
return array(
'last_posts' => $lastPosts,
);
}
And handle returned values in twig like this (It's just a part of code):
<div class="panel-body">
{{post.text|raw}}
</div>
And the output looks like this:
<p>Lorem ipsum</p>
What should I do to get rid off html tags and just let them render. I've tried to clear cache, same result :(