I try to send a html code in symfony2 like this :
public function testAction()
{
$html = '<input type="text">'
return $this->render('TestBundle:Default:index.htlm.twig',array(
'html' => $html,
));
}
When I use html variable in the page index.html.twig like this : {{ html }}
the result is
<input type="text">
But I do not want this result. the result that I want is that the page index.html.twig display me the input (the text area).