title: HTMLPurifier Youtube
body: <pre><code>&lt;?php
  
  require_once '/library/HTMLPurifier/HTMLPurifier.auto.php';
  
      $config = HTMLPurifier_Config::createDefault();
  
      $config-&gt;set('Filter.YouTube', true);
  
          $purifier = new HTMLPurifier($config);
  ?&gt;
  </code></pre>
  
  <p>(^ This is my only settings for HTMLPurifier)</p>
  
  <p>It should <code>&lt;span class="youtube-embed"&gt;nto6EvPFO0Q&lt;/span&gt;</code> make this in to a Youtube embbeded video. But it's not working. (Nothing happens simply)</p>
  
  <p>But loading like this works:</p>
  
  <pre><code>&lt;object width="425" height="350"&gt;
    &lt;param name="movie" value="http://www.youtube.com/v/nto6EvPFO0Q /&gt;
    &lt;param name="wmode" value="transparent" /&gt;
    &lt;embed src="http://www.youtube.com/v/nto6EvPFO0Q"
           type="application/x-shockwave-flash"
           wmode="transparent" width="425" height="350" /&gt;
  &lt;/object&gt;
  </code></pre>
  
  <p>(Is this a security issue? ^)</p>