title: How to render youtube video in YII2 DetailView widget
body: <p>I'm displaying you-tube video on front end of the website. Admin can provide the you-tube source from embedded code from Site back end. I want to have a preview on view page. Following is the code I tried but it is displaying the iframe tags as it is (I know this is not the right way)</p>
  
  <pre><code>[
      'attribute'=&gt;'source',
      'value' =&gt; !empty($model-&gt;source) ? '&lt;iframe class="embed-responsive-item" src="'.$model-&gt;source.'" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;' : NULL,
  ],
  </code></pre>
  
  <p>is there any thing like it has for image format:</p>
  
  <pre><code>[
      'label'=&gt;'Image',
      'attribute'=&gt;'userInfo.image',
      'format' =&gt; ['image',['width'=&gt;'100','height'=&gt;'100']],
  ],
  </code></pre>