title: How can I display a string that contains HTML with quotes in twig template?
body: <p>How can I display a string (variable <code>imgStr</code>) that contains HTML with quotes in twig template?</p>
  
  <p>String is :</p>
  
  <pre><code> &lt;img src="{{ asset( 'bundles/meeting/images/uploads/c986889a9912f69f6324d5c79c2d072119411384.png') }}" height="500" /&gt;
  </code></pre>
  
  <p>1) If i use raw filer  <code>&lt;br&gt; {{ imgStr|raw }} &lt;br&gt;</code> i am getting empty square instead of image. I believe the reason is ''/"" quotes inside the string.</p>
  
  <p>2) How to use function <code>template_from_string</code>? According official documentation, i must add the <code>Twig_Extension_StringLoader</code> extension explicitly when creating your Twig environment. But i do not understand how to make this in Symfony2. I also did not find this function in <code>Vendor/twig/extensions</code> .</p>