<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Generic video/embed filter?</title>
        <description>I have read over oodles of posts here and have been unable to find exactly what i'm looking for. I'm looking for something more generic than the YouTube filter in the core of HTMLPurify. The reason for this is I need to support numerous videos, most of the sites would be unknown. Additionally, supporting the flashvars tag is imperative. 

Can anyone provide any insight on this?  

As it stands now, I have this config and flashvars is filtered out:
set('Core.Encoding', 'UTF-8');
$config-&gt;set('HTML.Doctype', 'XHTML 1.0 Transitional');
// $config-&gt;set('Output.TidyFormat', true);
$config-&gt;set('AutoFormat.AutoParagraph', true);
$config-&gt;set('AutoFormat.DisplayLinkURI', true);
$config-&gt;set('AutoFormat.Linkify', true);
$config-&gt;set('AutoFormat.RemoveEmpty', true);
$config-&gt;set('AutoFormat.RemoveEmpty.RemoveNbsp.Exceptions', array('td', 'th'));
$config-&gt;set('AutoFormat.RemoveEmpty.RemoveNbsp', true);
$config-&gt;set('HTML.SafeObject', true);
$config-&gt;set('HTML.SafeEmbed', true);
$config-&gt;set('HTML.Trusted', true);
$config-&gt;set('HTML.TidyLevel', 'light');
$config-&gt;set('HTML.EnableAttrID', true);
// $config-&gt;set('HTML.Allowed', 'flashvars', 'object', 'embed', 'param');
$config-&gt;set('HTML.Allowed', array('param', 'object', 'embed', 'flashvars'));
$config-&gt;set('Cache.SerializerPath', Base::clientPath().Cache::DIRECTORY);
$config-&gt;set('Filter.YouTube', true);
// $config-&gt;set('Filter.Embed', true);
// $config-&gt;set('Filter.Playlist', true);

$purifier = new HTMLPurifier($config);
$this-&gt;post_data[$var_name] = $purifier-&gt;purify($post_value);
]]&gt;

On a side note, I was _trying_ to write my own filter, but could never get it to run. Is there something I need to do to activate the plugin?</description>
        <link>http://htmlpurifier.org/phorum/read.php?2,3886,3886#msg-3886</link>
        <lastBuildDate>Wed, 22 May 2013 04:13:36 -0400</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4710#msg-4710</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4710#msg-4710</link>
            <description><![CDATA[<p>I find this situation highly confusing. I suspect what I may end up doing is letting end-users specify what template they want to use when outputting flash, so that they can use more advanced methods like SWFObject.</p>

<p>Original issue fixed: <a href="http://repo.or.cz/w/htmlpurifier.git/commit/33afd7d9e050121593d81a8a150bf2b4f5a49f8a">http://repo.or.cz/w/htmlpurifier.git/commit/33afd7d9e050121593d81a8a150bf2b4f5a49f8a</a></p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>General</category>
            <pubDate>Sun, 20 Jun 2010 21:17:28 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4689#msg-4689</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4689#msg-4689</link>
            <description><![CDATA[<p>Yep. The other hiccup is YouTube recently changed their embed code.  The used to have a param "data" in the object tag, which no longer exists.  The solely rely on "embed src".  The removal of the "data" param, in conjunction with the "if IE" code renders all embeds in htmlpurifier NON functional in FF.</p>]]></description>
            <dc:creator>zmonteca</dc:creator>
            <category>General</category>
            <pubDate>Tue, 15 Jun 2010 16:31:36 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4688#msg-4688</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4688#msg-4688</link>
            <description><![CDATA[<p>Thanks for the report. It looks like our code for eliminating the crufty bits isn't quite working.</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>General</category>
            <pubDate>Tue, 15 Jun 2010 16:21:48 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4687#msg-4687</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4687#msg-4687</link>
            <description><![CDATA[<p>There's a bug on line 145 of the Generator when using FlashCompat for embed objects.</p>

<p>Once the </p>

<pre>&lt;!--[if IE]&gt;&lt;![endif]--&gt;</pre><p> is included, each additional time the filter is run it will keep appending that string.</p>

<p>For example, if the filter is run 2x, this is the resulting code:
</p>

<pre>
&lt;object width="640" height="385"&gt;
  &lt;param name="movie" value="<a href="http://www.youtube.com/v/2mNB_VG_shc&amp;hl=en_US&amp;fs=1&amp;">http://www.youtube.com/v/2mNB_VG_shc&amp;hl=en_US&amp;fs=1&amp;</a>" /&gt;
  &lt;param name="allowFullScreen" value="true" /&gt;
  &lt;param name="allowscriptaccess" value="always" /&gt;
  &lt;!--[if IE]&gt;&lt;embed width="640" height="385" src="<a href="http://www.youtube.com/v/2mNB_VG_shc&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;">http://www.youtube.com/v/2mNB_VG_shc&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;</a>" allowFullScreen="true" allowscriptaccess="always" /&gt;&lt;![endif]--&gt;&lt;!--[if IE]&gt;&lt;embed width="640" height="385" src="<a href="http://www.youtube.com/v/2mNB_VG_shc&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;">http://www.youtube.com/v/2mNB_VG_shc&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;</a>" allowFullScreen="true" allowscriptaccess="always" /&gt;&lt;![endif]--&gt;
&lt;/object&gt;
</pre>]]></description>
            <dc:creator>zmonteca</dc:creator>
            <category>General</category>
            <pubDate>Tue, 15 Jun 2010 15:41:29 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4686#msg-4686</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4686#msg-4686</link>
            <description><![CDATA[<p>See below. Miss-post.</p>]]></description>
            <dc:creator>zmonteca</dc:creator>
            <category>General</category>
            <pubDate>Tue, 15 Jun 2010 15:41:05 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4481#msg-4481</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4481#msg-4481</link>
            <description><![CDATA[<p>Glad that you figured it out.</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>General</category>
            <pubDate>Sat, 10 Apr 2010 17:41:07 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4480#msg-4480</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4480#msg-4480</link>
            <description><![CDATA[<p>Clarification</p>

<p>
"Latest git version from Tue, 30 Mar 2010 17:33:13 +0000"</p>

<p>refers the the HTML Purifier itself, not the drupal module.</p>]]></description>
            <dc:creator>Todd Geist</dc:creator>
            <category>General</category>
            <pubDate>Sat, 10 Apr 2010 17:36:02 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4479#msg-4479</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4479#msg-4479</link>
            <description><![CDATA[<p>to recap... settings that are working for me.</p>

<p>SafeEmbed - "yes"
SafeObject - "yes"
Trusted - "No"
DisableExternalResources - "No"</p>

<p>Drupal Module 6.x-2.1 (<a href="http://drupal.org/project/htmlpurifier">http://drupal.org/project/htmlpurifier</a>)
Latest git version from Tue, 30 Mar 2010 17:33:13 +0000</p>

<p>
Finally - Drupal, CKeditor, IMCE and HTMLPurifier - all playing nice with one another!</p>

<p>Thanks very much for a nice bit o work!</p>

<p>Todd</p>]]></description>
            <dc:creator>Todd Geist</dc:creator>
            <category>General</category>
            <pubDate>Sat, 10 Apr 2010 17:33:10 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4478#msg-4478</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4478#msg-4478</link>
            <description><![CDATA[<p>Got it!</p>

<p>you must have DisableExternalResources set to "off"!</p>

<p>Todd</p>]]></description>
            <dc:creator>Todd Geist</dc:creator>
            <category>General</category>
            <pubDate>Sat, 10 Apr 2010 17:25:39 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4477#msg-4477</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4477#msg-4477</link>
            <description><![CDATA[<p>Turning "trusted" and "flashCompat" on or off in any combinatino has no effect.</p>

<p>If use " the object tag comes through but it is stripped of its parameters.  Also embed is removed, but I have seen embed just be commented out for IE too, (not seeing that now)</p>

<p>before
</p>

<pre>
&lt;object height="385" width="480"&gt;&lt;param name="movie" value="<a href="http://www.youtube.com/v/A_L8sW_ULH8&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;">http://www.youtube.com/v/A_L8sW_ULH8&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;</a>" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;param name="allowscriptaccess" value="always" /&gt;&lt;embed allowfullscreen="true" allowscriptaccess="always" height="385" src="<a href="http://www.youtube.com/v/A_L8sW_ULH8&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;">http://www.youtube.com/v/A_L8sW_ULH8&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;</a>" type="application/x-shockwave-flash" width="480"&gt;&lt;/embed&gt;&lt;/object&gt;
</pre>

<p>after
</p>

<pre>
&lt;object height="385" width="480" type="application/x-shockwave-flash"&gt;&lt;param name="allowScriptAccess" value="never" /&gt;&lt;param name="allowNetworking" value="internal" /&gt;&lt;param name="movie" value="" /&gt;&lt;/object&gt;
</pre>

<p>Todd</p>]]></description>
            <dc:creator>Todd Geist</dc:creator>
            <category>General</category>
            <pubDate>Sat, 10 Apr 2010 17:21:33 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4476#msg-4476</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4476#msg-4476</link>
            <description><![CDATA[<p>What happens if you turn FlashCompat off? What happens if you turn Trusted on?</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>General</category>
            <pubDate>Sat, 10 Apr 2010 17:04:44 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4475#msg-4475</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4475#msg-4475</link>
            <description><![CDATA[<p>I deleted the "library" folder and re-uploaded the one from git, I cleared all caches and still no movies :&gt;(</p>

<p>Thanks</p>

<p>Todd</p>]]></description>
            <dc:creator>Todd Geist</dc:creator>
            <category>General</category>
            <pubDate>Sat, 10 Apr 2010 16:57:50 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4474#msg-4474</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4474#msg-4474</link>
            <description><![CDATA[<p>Delete the htmlpurifier folder containing the library, and then reupload the Git version?</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>General</category>
            <pubDate>Sat, 10 Apr 2010 16:39:16 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4473#msg-4473</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4473#msg-4473</link>
            <description><![CDATA[<p>well I am using the Drupal module, so I am guessing you want to see the  code that I using, not my implementation code.</p>

<p>Here is it is </p>

<pre>
&lt;embed allowfullscreen="true" allowscriptaccess="always" height="400" src="<a href="http://blip.tv/play/hb0hgdL%2BFQA.m4v">http://blip.tv/play/hb0hgdL%2BFQA%2Em4v</a>" type="application/x-shockwave-flash" width="600"&gt;&lt;/embed&gt;
</pre>

<p>
Thanks</p>

<p>Todd</p>]]></description>
            <dc:creator>Todd Geist</dc:creator>
            <category>General</category>
            <pubDate>Sat, 10 Apr 2010 16:29:23 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4472#msg-4472</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4472#msg-4472</link>
            <description><![CDATA[<p>Can you post your code?</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>General</category>
            <pubDate>Sat, 10 Apr 2010 16:19:36 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4471#msg-4471</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4471#msg-4471</link>
            <description><![CDATA[<p>Hello,</p>

<p>I have the latest version from git.  I am using the drupal module. I have set SafeEmbed and SafeObject on.  I have "Trusted" off. I also have FlashCompat on. I have cleared all caches.</p>

<p>But the embed tag is still getting stripped out.</p>

<p>Is there some other setting I need to deal with?</p>

<p>Thanks</p>

<p>Todd</p>]]></description>
            <dc:creator>Todd Geist</dc:creator>
            <category>General</category>
            <pubDate>Sat, 10 Apr 2010 16:01:32 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4443#msg-4443</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4443#msg-4443</link>
            <description><![CDATA[<p>Running the flush gave me an error on the command line, but after I physically deleted the HTML Purifier directory on my server and re-uploaded it, I was able to get it to work.  Thanks for your help in getting this up and running.  Great tool you guys have built here.</p>]]></description>
            <dc:creator>Curtis Gibby</dc:creator>
            <category>General</category>
            <pubDate>Thu, 01 Apr 2010 08:14:43 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4442#msg-4442</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4442#msg-4442</link>
            <description><![CDATA[<p>I tested locally and all of the relevant attributes seem to have been preserved. I bet you need to flush your cache; run php maintenance/flush.php</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>General</category>
            <pubDate>Wed, 31 Mar 2010 12:17:17 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4439#msg-4439</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4439#msg-4439</link>
            <description><![CDATA[<p>Thanks, Edward.</p>

<p>I've updated my site with the latest "flashvars"-enabled code, but that parameter is still getting stripped out of my embed -- same results as before.  (Both with and without <a href="/live/configdoc/plain.html#HTML.SafeObject">%HTML.SafeObject</a> enabled.) Can someone else confirm that a JW embed does work with the parameters described as above?</p>]]></description>
            <dc:creator>Curtis Gibby</dc:creator>
            <category>General</category>
            <pubDate>Tue, 30 Mar 2010 19:10:08 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4438#msg-4438</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4438#msg-4438</link>
            <description><![CDATA[<p>Whoops, forgot to do that. Should be pushed now.</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>General</category>
            <pubDate>Tue, 30 Mar 2010 15:29:52 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4437#msg-4437</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4437#msg-4437</link>
            <description><![CDATA[<p>Fantastic, I appreciate it.  I'm glad it wasn't just me, and that I was able to help improve the code by bringing this up.</p>

<p>I don't see those changes in the Git repo yet.  Are you going to commit them so I can pull the new version?</p>]]></description>
            <dc:creator>Curtis Gibby</dc:creator>
            <category>General</category>
            <pubDate>Tue, 30 Mar 2010 15:25:50 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4436#msg-4436</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4436#msg-4436</link>
            <description><![CDATA[<p>Ok, I fixed the flashvars in embed issue, though you'll still need <a href="/live/configdoc/plain.html#HTML.Embed">%HTML.Embed</a> on.</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>General</category>
            <pubDate>Tue, 30 Mar 2010 13:34:01 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4435#msg-4435</guid>
            <title>Re: Cannot set undefined directive Output.FlashCompat</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4435#msg-4435</link>
            <description><![CDATA[<p>Drop <a href="/live/configdoc/plain.html#HTML.SafeEmbed">%HTML.SafeEmbed</a>, it doesn't do the right thing. I guess we need to match embed tags and build up the entire thing. Marking this as a bug.</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>General</category>
            <pubDate>Tue, 30 Mar 2010 13:25:11 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4434#msg-4434</guid>
            <title>Re: Cannot set undefined directive Output.FlashCompat</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4434#msg-4434</link>
            <description><![CDATA[<p>Okay, I reuploaded the dev branch to my server and the Output.FlashCompat error went away.  Thanks for helping me troubleshoot it.</p>

<p>Next issue: even with that fixed, my embed is still getting its flashvars stripped out.  It's the generic embed code generated by the JW Player.  I understand not allowing script access or fullscreen, but it needs its flashvars.  Object-based embeds work fine.  Any ideas?</p>

<p><b>Input</b> : 
</p>

<pre>
&lt;embed src='<a href="http://www.curtisgibby.com/pages/player-viral.swf">http://www.curtisgibby.com/pages/player-viral.swf</a>' height='240' width='320' allowscriptaccess='always' allowfullscreen='true' flashvars='image=http%3A%2F<a href="/live/configdoc/plain.html#2Fwww.curtisgibby">%2Fwww.curtisgibby</a>.com%2Fthumbs%2FEaster2009-NathanSwinging.jpg&amp;file=http%3A%2F<a href="/live/configdoc/plain.html#2Fwww.curtisgibby">%2Fwww.curtisgibby</a>.com%2Fpics%2FEaster2009-NathanSwinging.flv&amp;plugins=viral-1d'/&gt;
</pre>

<p><b>Output</b> : 
</p>

<pre>
&lt;embed src='<a href="http://www.curtisgibby.com/pages/player-viral.swf">http://www.curtisgibby.com/pages/player-viral.swf</a>' height='240' width='320' allowscriptaccess='never' allownetworking='internal' type='application/x-shockwave-flash'&gt;
</pre>

<p><b>Config</b> : 
</p>

<pre>
$config = HTMLPurifier_Config::createDefault();
$config-&gt;set('Output.TidyFormat', true);
$config-&gt;set('HTML.Doctype', 'HTML 4.01 Transitional');
$config-&gt;set('HTML.SafeObject', true);
$config-&gt;set('HTML.SafeEmbed', true);
$config-&gt;set('Output.FlashCompat', true);
$purifier = new HTMLPurifier($config);
</pre>]]></description>
            <dc:creator>Curtis Gibby</dc:creator>
            <category>General</category>
            <pubDate>Tue, 30 Mar 2010 09:15:49 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4431#msg-4431</guid>
            <title>Re: Cannot set undefined directive Output.FlashCompat</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4431#msg-4431</link>
            <description><![CDATA[<p>It's a little complicated, but you should have a file library/HTMLPurifier/ConfigSchema/schema/Output.FlashCompat.txt</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>General</category>
            <pubDate>Mon, 29 Mar 2010 11:54:44 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4430#msg-4430</guid>
            <title>Re: Cannot set undefined directive Output.FlashCompat</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4430#msg-4430</link>
            <description><![CDATA[<p>Yeah, that's what I thought.  Which file actually defines the new Output.FlashCompat directive?  I tried to find it in the diffs to make sure that I was using the version that has that defined, but I didn't see it anywhere. </p>

<p>Thanks for your help!</p>]]></description>
            <dc:creator>Curtis Gibby</dc:creator>
            <category>General</category>
            <pubDate>Mon, 29 Mar 2010 11:48:09 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4427#msg-4427</guid>
            <title>Re: Cannot set undefined directive Output.FlashCompat</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4427#msg-4427</link>
            <description><![CDATA[<p>That error message implies that you're not actually using the development version?</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>General</category>
            <pubDate>Mon, 29 Mar 2010 10:41:57 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4426#msg-4426</guid>
            <title>Cannot set undefined directive Output.FlashCompat</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4426#msg-4426</link>
            <description><![CDATA[<p>After I download the latest dev version (2010-03-10) and try to output an embedded video (non-Youtube), I get the following warning:</p>

<pre>
Warning: Cannot set undefined directive Output.FlashCompat to value on line 10 in file /path/to/myfile.php in /path/to/htmlpurifier/library/HTMLPurifier/Config.php  on line 564
</pre>

<p><b>Config code:</b></p>

<pre>
$config = HTMLPurifier_Config::createDefault();
$config-&gt;set('Output.TidyFormat', true);
$config-&gt;set('HTML.Doctype', 'HTML 4.01 Transitional'); // replace with your doctype
$config-&gt;set('HTML.SafeObject', true);
$config-&gt;set('Output.FlashCompat', true);
$config-&gt;set('HTML.SafeEmbed', true);
</pre>

<p>That gives me an embed, but without the flashvars required to make the video work.  I see other people are having success with HTML.SafeEmbed and Output.FlashCompat, but it seems that the version of the code that I have just doesn't recognize that FlashCompat exists.  Any ideas?</p>]]></description>
            <dc:creator>Curtis Gibby</dc:creator>
            <category>General</category>
            <pubDate>Mon, 29 Mar 2010 10:01:20 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4387#msg-4387</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4387#msg-4387</link>
            <description><![CDATA[<p>Try the solution here: <a href="http://htmlpurifier.org/phorum/read.php?3,4324,4334#msg-4334">http://htmlpurifier.org/phorum/read.php?3,4324,4334#msg-4334</a></p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>General</category>
            <pubDate>Mon, 15 Mar 2010 13:30:15 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,3886,4382#msg-4382</guid>
            <title>Re: Generic video/embed filter?</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,3886,4382#msg-4382</link>
            <description><![CDATA[<p>Ambush Commander, please, give me advice.
I want to allow "flashvars" param in  tag.
How I could do it? I don`t want big security in embed, i just want to allow this param, because its very important.
I tried to modify AttrTransform\SafeEmbed.php, but as I understood, $attr already contains only allowed tags.. So, please give me some tip how to allow this param.
Big thx.</p>]]></description>
            <dc:creator>rocker</dc:creator>
            <category>General</category>
            <pubDate>Mon, 15 Mar 2010 05:59:58 -0400</pubDate>
        </item>
    </channel>
</rss>
