<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Forums - General</title>
        <description>General discussion about HTML Purifier that isnt asking questions for help.</description>
        <link>http://htmlpurifier.org/phorum/list.php?2</link>
        <lastBuildDate>Fri, 24 May 2013 03:56:31 -0400</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6957,6957#msg-6957</guid>
            <title>Tiki Wiki CMS Groupware is using 4.5.0 : Please update htmlpurifier.org (1 reply)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6957,6957#msg-6957</link>
            <description><![CDATA[<p>Hi!</p>

<p>The Tiki community is now using Composer:
<a href="https://sourceforge.net/p/tikiwiki/code/HEAD/tree/trunk/composer.json">https://sourceforge.net/p/tikiwiki/code/HEAD/tree/trunk/composer.json</a></p>

<p>And there is a package here:
<a href="https://packagist.org/packages/ezyang/htmlpurifier">https://packagist.org/packages/ezyang/htmlpurifier</a></p>

<p>Please update <a href="http://htmlpurifier.org/">http://htmlpurifier.org/</a> with SF link to code (the URL changed) above and indication of use of 4.5</p>

<p>Many thanks for HTML Purifier!</p>

<p>M ;-)</p>]]></description>
            <dc:creator>marclaporte</dc:creator>
            <category>General</category>
            <pubDate>Thu, 02 May 2013 18:19:27 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6907,6907#msg-6907</guid>
            <title>Daili motion video (1 reply)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6907,6907#msg-6907</link>
            <description><![CDATA[<p>I want to ask abou configuration for <a href="http://www.dailymotion.com">http://www.dailymotion.com</a> ive tryed to do 			$config-&gt;set('URI.SafeIframeRegexp', '%^http://(<a href="http://www.dailymotion.com/embed/video/">http://www.dailymotion.com/embed/video/</a>)%); but nothing works, goit any idea? </p>

<p>And just for information is there any player limit that i can add to URI.SafeIframeRegexp?</p>]]></description>
            <dc:creator>muaidb</dc:creator>
            <category>General</category>
            <pubDate>Tue, 09 Apr 2013 12:10:53 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6847,6847#msg-6847</guid>
            <title>HTML5 Donation (4 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6847,6847#msg-6847</link>
            <description><![CDATA[<p>Hi,</p>

<p>I apologize if there is something new on the HTML5 front with htmlpurifier but everything I have read says it has not been implemented and probably won't be.  It seems the current solution is to add custom elements to support at least a subset of the tags, etc.</p>

<p>Would a donation/investment (in other words $) change this?  It seems the demand is there, and if this indeed would provide the resources for you to get HTML5 support implemented, I would be willing to lead a fundraiser from interested parties to get what is needed.</p>

<p>Thanks!
atDev</p>]]></description>
            <dc:creator>atDev</dc:creator>
            <category>General</category>
            <pubDate>Tue, 21 May 2013 20:25:55 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6840,6840#msg-6840</guid>
            <title>URI.Base multiple domains (1 reply)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6840,6840#msg-6840</link>
            <description><![CDATA[<p>I'm using HTML.Nofollow which requires the URI.Base setting, I'd like it to consider a few subdomains as local. Is it possible to include more than one URI.Base?</p>

<p>E.g. for <a href="http://example.com">http://example.com</a> I'd like it to consider <a href="">http://example.com,</a> <a href="http://www.example.com">http://www.example.com</a> and <a href="http://sub.example.com">http://sub.example.com</a> all as local addresses.</p>

<div>Rob<div>
<a href="http://www.redtaz.com" title="Red Taz Web Design">Red Taz Web Design</a></div></div>]]></description>
            <dc:creator>redtaz</dc:creator>
            <category>General</category>
            <pubDate>Mon, 25 Feb 2013 15:45:52 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6806,6806#msg-6806</guid>
            <title>When to use HTML Purifier with CodeIgniter (3 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6806,6806#msg-6806</link>
            <description><![CDATA[<p>I am currently using CodeIgniter. I have 4 forms (student signin, login in form, create account, and request account) </p>

<p>I am currently using the Form_validation helper in codeigniter to make sure the data is what I expect if not then i will not pass it to the model (MVC). Also I am using the global xss_clean filter. </p>

<p>To my understand HTML Purifier should be only used when user data is going to be echo'd/outputted as HTML in a table, forum, blog (etc.) Is my understanding of this correct? I am asking because my student login form will be used to enter data into a database. Then my student queue page which will be creating a html jquery table will be used to SELECT ... FROM ... that database. So this is confusing me because in the output for the student queue  page the data will be database housed. it wont just be posted directly. </p>

<p>So in turn my train of thought goes as follows : </p>

<p>&gt;&gt; Validate data making sure it is what you expect</p>

<p>&gt;&gt; Filter the data with xss_clean like I currently am.</p>

<p>&gt;&gt; Use PDO prepared queries to insert the data to the DB</p>

<p>&gt;&gt; now this step confuses me as to how I should echo my database data? should i use HTML Purifier at this step?</p>

<p>Sorry if this question has been asked a million times, I just can't seem to find what I am looking for. I am not fully gripping the concept of HTML purifier.</p>]]></description>
            <dc:creator>RaGe10940</dc:creator>
            <category>General</category>
            <pubDate>Sun, 17 Feb 2013 12:55:45 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6797,6797#msg-6797</guid>
            <title>New Version (6 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6797,6797#msg-6797</link>
            <description><![CDATA[<p>It passed over a year from last release and HTML purifier had changed enough with some fixes.</p>

<p>Is it possible to make a new (at least a minor) release ?</p>

<p>Thank you.</p>]]></description>
            <dc:creator>Macik</dc:creator>
            <category>General</category>
            <pubDate>Mon, 29 Apr 2013 20:29:03 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6794,6794#msg-6794</guid>
            <title>Allowing &amp;lt;br clear=&quot;all&quot;&amp;gt; (2 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6794,6794#msg-6794</link>
            <description><![CDATA[<p>Hi, long time user but first time poster.</p>

<p>How can I allow &lt;br clear="all"&gt; if my config is:
</p>

<pre>
$config-&gt;set('HTML.Allowed', 'br[clear]');
</pre><p>
which is not working, and HTMLPurifier change it to &lt;p&gt;&amp;nbsp;&lt;/p&gt;</p>

<p>Thank you very much.</p>]]></description>
            <dc:creator>parjo</dc:creator>
            <category>General</category>
            <pubDate>Fri, 08 Feb 2013 03:40:12 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6785,6785#msg-6785</guid>
            <title>Stripping URL (3 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6785,6785#msg-6785</link>
            <description><![CDATA[<p>I'm using CKEditor on one of my sites.  I just installed HTMLPurifier to assist in filtering any bad data.  If I enter a URL via CKEditor, ie; yahoo.com, it is getting stripped out and replaced with %5C.</p>

<p>I'm guessing there must be something I'm doing wrong?</p>

<p>I have the POST data getting filtered like this:
$cleaned = $purifier-&gt;purify($_POST['rawdata']);</p>

<p>Thanks!</p>]]></description>
            <dc:creator>RDC</dc:creator>
            <category>General</category>
            <pubDate>Wed, 06 Feb 2013 19:50:44 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6782,6782#msg-6782</guid>
            <title>Important About Using htmlpurifier (1 reply)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6782,6782#msg-6782</link>
            <description><![CDATA[<p>Guyz Really i want your help plz plz plz
i have my site affected with XSS and i m a student i m unable to start htmlpurifier on my site an instruction i install only library folder in /public html 
abd then put this code in index.php &lt;?php
    require_once '/path/to/htmlpurifier/library/HTMLPurifier.auto.php';</p>

<p>    $config = HTMLPurifier_Config::createDefault();
    $purifier = new HTMLPurifier($config);
    $clean_html = $purifier-&gt;purify($dirty_html);
?&gt;</p>

<p>but getting warning error and a fatal error so i know i made some mistake plz u r expert help me in simple manner so that my site get secured
you can also mail me pearlvishu[at]gmail[dot]com or if u r on fb - fb.com/vishalworld000 plz hepl guyz</p>]]></description>
            <dc:creator>Mixremix.in</dc:creator>
            <category>General</category>
            <pubDate>Sat, 02 Feb 2013 11:10:05 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6715,6715#msg-6715</guid>
            <title>Universal filter for third-party content embedding (7 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6715,6715#msg-6715</link>
            <description><![CDATA[<p>Hi there!</p>

<p>I was thinking about third-party content embedding (YouTube videos, &lt;object&gt;, &lt;iframe&gt; etc).</p>

<p>Am i right that there is no universal solutions for this task right now?</p>

<p>Is this solution demanded by the developers and users?</p>

<p>I though maybe i should create a universal configurable filter to accomplish this task.</p>

<p>Who's interested? I'm looking for your opinion. Feature requests and any ideas are most welcome.</p>

<p>We can even start an "official" whitelist of popular services.</p>

<p>Slava Fomin II
Let's make this World a Better place!</p>]]></description>
            <dc:creator>s.fomin</dc:creator>
            <category>General</category>
            <pubDate>Wed, 13 Feb 2013 07:55:04 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6707,6707#msg-6707</guid>
            <title>How do I download/extract the SIG files? (4 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6707,6707#msg-6707</link>
            <description><![CDATA[<p>I have a client who has a site based in PHP4 (and likely won't be switching any time soon, despite my recommendations).</p>

<p>I've read that older versions of HTML Purifier can be used on PHP4 (specifically the 2.x version), however they've all got SIG extensions, and I don't have any clue what to do about those - when I download the file, it gives me an extremely small (perhaps 50kb) SIG file.</p>

<p>What's the procedure to get this extracted and ready for deployment?</p>]]></description>
            <dc:creator>AndyMG</dc:creator>
            <category>General</category>
            <pubDate>Thu, 13 Dec 2012 14:37:26 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6687,6687#msg-6687</guid>
            <title>Easiest way to update version (1 reply)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6687,6687#msg-6687</link>
            <description><![CDATA[<p>A couple of years ago I installed HTMLPurifier, but didn't end up using it.  I need it again and got the old version working, but would like to upgrade to the latest version.  What is the easiest way to do this on RedHat Linux?  Do I have to completely reinstall?  I am a programmer, not a Linux admin, so please spell everything out for me.  I greatly appreciate any assistance in this matter.</p>

<p>Thanks, 
J</p>]]></description>
            <dc:creator>J Zucker</dc:creator>
            <category>General</category>
            <pubDate>Mon, 05 Nov 2012 19:41:04 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6685,6685#msg-6685</guid>
            <title>Purifier strips valid content when html is badly malformed (12 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6685,6685#msg-6685</link>
            <description><![CDATA[<p>HTML Purifier deletes valid content from a string when the HTML is very badly malformed.</p>

<p>To reproduce this, plug in the following HTML into the HTML Purifier demo.
</p>

<pre>
&lt;DIV&gt;&lt;PRE style="WORD-WRAP: break-word" id=PreBody&gt;&lt;PRE&gt;&lt;PRE style="WORD-WRAP: break-word" id=PreBody&gt;&lt;PRE&gt;&lt;FONT size=2 face=Arial&gt;

Missing content!!

&lt;B&gt;1) Details:&lt;/B&gt;   

By default, HTML Purifier may remove some of your spacing indentation. Turn on CollectErrors or experimental features order to fully preserve whitespace.

&lt;B&gt;2) Instruction Instruction Instruction:&lt;/B&gt;   
  
By default, HTML Purifier may remove some of your spacing indentation. Turn on CollectErrors or experimental features order to fully preserve whitespace.

&lt;B&gt;3) Instruction Instruction Instruction:&lt;/B&gt; 

More text. Instruction Instruction Instruction.
&lt;B&gt;Acceptance:&lt;/B&gt;

More missing content.

&lt;/FONT&gt;
</pre>

<p>The result is simply:</p>

<pre>
&lt;div&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;/div&gt;
</pre>

<p>I'm glad HTML Purifier is aggressively cleaning up this mess, but perhaps too much text was removed?</p>]]></description>
            <dc:creator>exien</dc:creator>
            <category>General</category>
            <pubDate>Thu, 21 Feb 2013 17:42:37 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6651,6651#msg-6651</guid>
            <title>is my config safe? thank you (2 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6651,6651#msg-6651</link>
            <description><![CDATA[<pre>
$config = HTMLPurifier_Config::createDefault();
$config-&gt;set('HTML.SafeObject', true);
$config-&gt;set('Output.FlashCompat', true);
$config-&gt;set('URI.DisableExternalResources', false);
$config-&gt;set('Filter.Custom', array(new HTMLPurifier_Filter_youtube2()));
$config-&gt;set('HTML.Allowed', 'p,a[href|rel|target],img[class|src|height|width],div[style],span[style],strong,br,h1,h2,h3,h4,h5,blockquote,small,i,u');
$config-&gt;set('CSS.AllowedProperties', array('float', 'color','background-color', 'background', 'font-size', 'font-family', 'text-decoration', 'font-weight', 'font-style', 'font-size','text-align'));
$purifier = new HTMLPurifier($config);
</pre>

<p>i am using it with ckeditor and i need users to be able to style theire article and add youtube embed video
this is the filter:(found on stackoverflow)
</p>

<pre>
&lt;?/**
 * Based on: <a href="http://sachachua.com/blog/2011/08/drupal-html-purifier-embedding-iframes-youtube/">http://sachachua.com/blog/2011/08/drupal-html-purifier-embedding-iframes-youtube/</a>
 * Iframe filter that does some primitive whitelisting in a somewhat recognizable and tweakable way
 */
class HTMLPurifier_Filter_youtube2 extends HTMLPurifier_Filter
{
    public $name = 'youtube2';

    /**
     *
     * @param string $html
     * @param HTMLPurifier_Config $config
     * @param HTMLPurifier_Context $context
     * @return string
     */
    public function preFilter($html, HTMLPurifier_Config $config, HTMLPurifier_Context $context)
    {
        $html = preg_replace('#&lt;iframe#i', '&lt;img class="youtube2"', $html);
        $html = preg_replace('#&lt;/iframe&gt;#i', '&lt;/img&gt;', $html);
        return $html;
    }

    /**
     *
     * @param string $html
     * @param HTMLPurifier_Config $config
     * @param HTMLPurifier_Context $context
     * @return string
     */
    public function postFilter($html, HTMLPurifier_Config $config, HTMLPurifier_Context $context)
    {
        $post_regex = '#&lt;img class="youtube2"([^&gt;]+?)&gt;#';
        return preg_replace_callback($post_regex, array($this, 'postFilterCallback'), $html);
    }

    /**
     *
     * @param array $matches
     * @return string
     */
    protected function postFilterCallback($matches)
    {
        // Domain Whitelist
        $youTubeMatch = preg_match('#src="https?://www.youtube(-nocookie)?.com/#i', $matches[1]);
        $vimeoMatch = preg_match('#src="<a href="http://player.vimeo.com/#i">http://player.vimeo.com/#i</a>', $matches[1]);
        if ($youTubeMatch || $vimeoMatch) {
            $extra = ' frameborder="0"';
            if ($youTubeMatch) {
                $extra .= ' allowfullscreen';
            } elseif ($vimeoMatch) {
                $extra .= ' webkitAllowFullScreen mozallowfullscreen allowFullScreen';
            }
            return '&lt;iframe ' . $matches[1] . $extra . '&gt;&lt;/iframe&gt;';
        } else {
            return '';
        }
    }
}
?&gt;
</pre>]]></description>
            <dc:creator>boynet</dc:creator>
            <category>General</category>
            <pubDate>Tue, 09 Oct 2012 09:29:58 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6540,6540#msg-6540</guid>
            <title>Updated QCubed to use HtmlPurifier 4.4 (1 reply)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6540,6540#msg-6540</link>
            <description><![CDATA[<p>We have updated the HTMLPurifier library in QCubed project to the latest version (4.4). You can see it here: </p>

<p><a href="http://trac.qcu.be/projects/qcubed/browser/framework/branches/2.0/includes/external_libraries/htmlpurifier">http://trac.qcu.be/projects/qcubed/browser/framework/branches/2.0/includes/external_libraries/htmlpurifier</a></p>

<p>It would be kind if you could update the same on the front page :)</p>

<p>Regards,
Vaibhav</p>]]></description>
            <dc:creator>Vaibhav Kaushal</dc:creator>
            <category>General</category>
            <pubDate>Tue, 31 Jul 2012 14:03:36 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6526,6526#msg-6526</guid>
            <title>Update Notification List (4 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6526,6526#msg-6526</link>
            <description><![CDATA[<p>Hi.</p>

<p>Is there a mailing list that will notify when a new version of HTML Purifier has been released? I looked at the mailing list link above but it is a general one. Current topics include support queries, "joke pictures - really funny", but no formal release announcements that I can see.</p>

<p>I'd like to have release notifications come in to members of my Dev team so I can ensure that someone is aware of it no matter who is present, away, etc. For that, I really need a simple release notification that goes out which is only release notifications. I don't want my Devs getting auto sent support queries for the library, etc.</p>

<p>Is there a release notification list I can sign up for that I've missed? If not, would it be possible to set something up as it would be extremely useful and for others also, I'm sure.</p>

<p>Thanks,</p>

<p>H.</p>]]></description>
            <dc:creator>h4rm0ny</dc:creator>
            <category>General</category>
            <pubDate>Fri, 03 Aug 2012 10:14:59 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6474,6474#msg-6474</guid>
            <title>User List (1 reply)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6474,6474#msg-6474</link>
            <description><![CDATA[<p>Hi Edward,</p>

<p>Could you possibly update the users list on the front page for ImpressCMS thanks.</p>

<p>we are now using version 4.4.0, our SVN has changed since.</p>

<p>new url to SVN is <a href="http://www.assembla.com/code/impresscms/subversion/nodes/trunk/htdocs/libraries/htmlpurifier?rev=11754">http://www.assembla.com/code/impresscms/subversion/nodes/trunk/htdocs/libraries/htmlpurifier?rev=11754</a></p>]]></description>
            <dc:creator>vaughan</dc:creator>
            <category>General</category>
            <pubDate>Fri, 29 Jun 2012 00:16:33 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6434,6434#msg-6434</guid>
            <title>Install with PEAR (no replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6434,6434#msg-6434</link>
            <description><![CDATA[<p>Had a very difficult time figuring out how to install HTML Purifier using Pear. Finally located this set of instructions:</p>

<p><b>install htmlpurifier in ubuntu</b></p>

<p>apt-get install php-pear</p>

<p>pear channel-discover htmlpurifier.org</p>

<p>pear install hp/HTMLPurifier </p>

<p>If using <b>WAMP</b>
With Pear installed, same steps as above, without the "apt-get".</p>]]></description>
            <dc:creator>milest</dc:creator>
            <category>General</category>
            <pubDate>Mon, 11 Jun 2012 10:49:25 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6188,6188#msg-6188</guid>
            <title>License issues (5 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6188,6188#msg-6188</link>
            <description><![CDATA[<p>Hi all, </p>

<p>I am one of the developers of the QCubed project. It is a PHP framework and we want to include (ship) HTMLPurifier in our up coming release. However, our project has a MIT License and HTMLPurifier has LGPL v 2.1+. As far as I can see, they are compatible (specially since we are not modifying HTMLPurifier source). </p>

<p>In case there are any conflicts, please tell us. We would want to make workarounds for the same. </p>

<p>Regards,
Vaibhav</p>]]></description>
            <dc:creator>Vaibhav Kaushal</dc:creator>
            <category>General</category>
            <pubDate>Wed, 22 Feb 2012 22:04:14 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6184,6184#msg-6184</guid>
            <title>HTML Purifier is AWESOME! (2 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6184,6184#msg-6184</link>
            <description><![CDATA[<p>HTML Purifier is work great in my project.</p>

<p>Thx! (•̀ᴗ•́)و</p>]]></description>
            <dc:creator>penner</dc:creator>
            <category>General</category>
            <pubDate>Fri, 17 Feb 2012 07:21:29 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6169,6169#msg-6169</guid>
            <title>Using HTML5  !DOCTYPE HTML (8 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6169,6169#msg-6169</link>
            <description><![CDATA[<p>Hi there:</p>

<p>I am new to all of this and am not catching on too quickly!  My first question...is using the simple HTML5 "!DOCTYPE HTML " not allowed with HTML PURIFIER?</p>

<p>Second question...</p>

<p>If the stand alone version does everything the full version does but runs quicker, why offer the full version at all?  Why not just offer the stand alone?</p>

<p>Thanks!</p>]]></description>
            <dc:creator>Square1</dc:creator>
            <category>General</category>
            <pubDate>Fri, 04 Jan 2013 09:18:58 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6154,6154#msg-6154</guid>
            <title>add new css property (2 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6154,6154#msg-6154</link>
            <description><![CDATA[<p>Hi! How i can add new CSS allowed property like "border-radius"?
If add this to CSS.AllowedProperties, i have error "Style attribute "border-radius" is not supported (for information on implementing this, see the support forums).
Thanks.</p>]]></description>
            <dc:creator>medic_911</dc:creator>
            <category>General</category>
            <pubDate>Wed, 25 Apr 2012 07:49:58 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6116,6116#msg-6116</guid>
            <title>Strip PHP open/close tags? (3 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6116,6116#msg-6116</link>
            <description><![CDATA[<p>Is there any way to get HTML purifier to strip the PHP open and close tags?</p>

<pre>
&lt;?php and ?&gt;
</pre>]]></description>
            <dc:creator>atDev</dc:creator>
            <category>General</category>
            <pubDate>Sat, 31 Dec 2011 20:06:10 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6062,6062#msg-6062</guid>
            <title>Filter all elements except b, convert filtered elements to space (1 reply)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6062,6062#msg-6062</link>
            <description><![CDATA[<p>I'm having a small issue where I have minified HTML, that I now need to strip out all tags except for the 'b' tag when it has the class 'red'. I am able to pretty easily do this with this config</p>

<p>'HTML.Allowed', 'b[class]'</p>

<p>'Attr.AllowedClasses', 'red'</p>

<p>Since my HTML text is minified, the output looks something like this</p>

<p>::input:: &lt;p&gt;&lt;ul&gt;&lt;li&gt;item&lt;/li&gt;&lt;li&gt;&lt;b class="red"&gt;item2&lt;/li&gt;&lt;/ul&gt;&lt;/p&gt;
::output:: item&lt;b class="red"&gt;item2&lt;/b&gt; When when rendered, looks like, "item<b>item2</b>"</p>

<p>Since them items are block level elements, is there a way to add a space between them? So the output would look like,</p>

<p>::output:: item &lt;b class="red"&gt;item2&lt;/b&gt;</p>]]></description>
            <dc:creator>mrfr0g</dc:creator>
            <category>General</category>
            <pubDate>Tue, 13 Dec 2011 15:16:45 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6051,6051#msg-6051</guid>
            <title>Not filtering? (3 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6051,6051#msg-6051</link>
            <description><![CDATA[<p>My code:</p>

<p>require_once './HTMLPurifier.standalone.php';</p>

<p>$config = HTMLPurifier_Config::createDefault();</p>

<p>$config-&gt;set('HTML.Allowed', 'p,span,em,ul,ol,li');</p>

<p>$purifier = new HTMLPurifier($config);</p>

<p>$output= $purifier-&gt;purify($input);</p>

<p>
$input:
</p>

<p>&lt;script&gt;abc&lt;/script&gt;&lt;p&gt;p1&lt;/p&gt;&lt;div&gt;123&lt;/div&gt;</p>

<p>$output:
</p>

<p>&lt;script&gt;abc&lt;/script&gt;&lt;p&gt;p1&lt;/p&gt;&lt;div&gt;123&lt;/div&gt;</p>

<p>Works fine on your demo page: output is &lt;p&gt;p1&lt;/p&gt;123</p>

<p>What am i doing wrong?</p>

<p>Thanks</p>

<p>David</p>]]></description>
            <dc:creator>DavidIanWaters</dc:creator>
            <category>General</category>
            <pubDate>Tue, 06 Dec 2011 16:22:08 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,6044,6044#msg-6044</guid>
            <title>how to turn off cache ? (4 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,6044,6044#msg-6044</link>
            <description><![CDATA[<p>in the document about htmlpurifier had write follow:
</p>

<pre>
$config = HTMLPurifier_Config::createDefault();
$config-&gt;set('HTML.DefinitionID', 'enduser-customize.html tutorial');
$config-&gt;set('HTML.DefinitionRev', 1);
$config-&gt;set('Cache.DefinitionImpl', null); // TODO: remove this later!
$def = $config-&gt;getHTMLDefinition(true);
</pre><p>
But when i tried it still cache, not turn off .. pls help me turn of cache in htmlpurifer</p>]]></description>
            <dc:creator>changtraingheo</dc:creator>
            <category>General</category>
            <pubDate>Tue, 16 Oct 2012 01:42:34 -0400</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,5996,5996#msg-5996</guid>
            <title>Alinea disappears after &lt;/div&gt; (1 reply)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,5996,5996#msg-5996</link>
            <description><![CDATA[<p>Try this to purify:</p>

<p>Test 1</p>

<p>Test 2</p>]]></description>
            <dc:creator>Michael de Jong</dc:creator>
            <category>General</category>
            <pubDate>Tue, 08 Nov 2011 02:06:20 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,5992,5992#msg-5992</guid>
            <title>Skip Tags in HTML Code (3 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,5992,5992#msg-5992</link>
            <description><![CDATA[<p>Hey everyone,</p>

<p>I've been doing some searching and haven't found anything solid on this and just thought I'd ask.</p>

<p>I'm allowing my users to edit email templates. The email templates are html so I'm happy to use htmlpurifier to strip out all scripts and non compliant html code.</p>

<p>However, I do have special tags that get replaced when the email gets sent out. They're all surrounded by square brackets.
Ex: [CONTENT] [UNSUBSCRIBE]</p>

<p>These tags are placed in displayable html  &amp;lt;pre&amp;gt;&amp;lt;![CDATA[&amp;lt;div&amp;gt;[CONTENT]&amp;lt;/div&amp;gt;]]&amp;gt;&amp;lt;/pre&amp;gt;  as well in links  &amp;lt;pre&amp;gt;&amp;lt;![CDATA[
&amp;lt;a href=&amp;quot;[UNSUBSCRIBE]&amp;quot;&amp;gt;Unsubscribe&amp;lt;/a&amp;gt;
]]&amp;gt;&amp;lt;/pre&amp;gt; </p>

<p>Does anyone know of a way to have htmlpurifier not convert the square brackets? If I run href=&amp;quot;[UNSUBSCRIBE]&amp;quot; through the purifier I get href=&amp;quot;%5BUNSUBSCRIBE%5B&amp;quot;</p>

<p>Thanks for any info on this.</p>]]></description>
            <dc:creator>Cam C</dc:creator>
            <category>General</category>
            <pubDate>Mon, 07 Nov 2011 12:51:17 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,5987,5987#msg-5987</guid>
            <title>HTMLPurifier and &amp;lt;code&amp;gt; tags (8 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,5987,5987#msg-5987</link>
            <description><![CDATA[<p>I have a forum in which users already have 10 years of learning to use </p>

<pre>
&lt;code&gt;
code here
&lt;/code&gt;
</pre>

<p>to enter code, so using the pre + cdata method isnt possible, its also not possible to use jquery to process the submission and dynamically code into pre + cdata since cdata isnt part of the dom, just xml</p>

<p>Does htmlpurifier have any functionality in which to help doing that? obviously it cant be done on the way out html purifier since the stuff inside the code block is going to be blocked by purifier, and I would really like to avoid doing manual string processing for all the same reasons that htmlpurifier exists.</p>

<p>Cheers
Dale</p>]]></description>
            <dc:creator>dale</dc:creator>
            <category>General</category>
            <pubDate>Sun, 19 Feb 2012 17:05:14 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?2,5976,5976#msg-5976</guid>
            <title>i have a problem  &quot;div style&quot;,&quot;span style&quot; (3 replies)</title>
            <link>http://htmlpurifier.org/phorum/read.php?2,5976,5976#msg-5976</link>
            <description><![CDATA[<p>hi
&lt;span style="COLOR:black"&gt;text&lt;/span&gt; return &lt;span&gt;text&lt;/span&gt;</p>

<p>&lt;div style="font-size:12px;"&gt;text2&lt;/div&gt; is return &lt;div&gt;text2&lt;/div&gt;</p>

<p>my config file is:</p>

<p>$config = HTMLPurifier_Config::createDefault();</p>

<p>$config -&gt; set('Core.Encoding', 'UTF-8');</p>

<p>$config -&gt; set('HTML.Doctype', 'XHTML 1.0 Transitional');</p>

<p>$config -&gt; set('HTML.TidyLevel','medium');</p>

<p>		
$config-&gt;set('HTML.AllowedAttributes', '*.style,a.href,a.title');</p>

<p> $config-&gt;set('HTML.AllowedElements','div,a,strong,span,em,p,u,i,b,sup,sub,small,ul,li,ol,big,code,blockquote,hr,h1,h2,h3,h4,h5');</p>

<p>	        $config-&gt;set('CSS.AllowedProperties', array('float', 'color','background-color', 'background', 'font-size', 'font-family', 'text-decoration', 'font-weight', 'font-style', 'font-size'));</p>

<p>$config-&gt;set('AutoFormat.RemoveSpansWithoutAttributes', true);</p>

<p>
	$config-&gt;set('CSS.AllowTricky','true');</p>

<p>$schemes = array('http' =&gt; true, 'https' =&gt; true);</p>

<p>$config -&gt; set('URI.AllowedSchemes', $schemes);</p>

<p>$purifier = new HTMLPurifier($config);</p>

<p>$content = $purifier -&gt; purify($dirty_html);</p>

<p>return $content;</p>

<p>
i want see &lt;span STYLE and &lt;div STYLE  HOW CAN ? DO?</p>]]></description>
            <dc:creator>arlong</dc:creator>
            <category>General</category>
            <pubDate>Mon, 17 Oct 2011 12:00:35 -0400</pubDate>
        </item>
    </channel>
</rss>
