<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Remove XSS, but don't convert to HTML entities</title>
        <description>Is it possible to configure HTML Purifier so it removes XSS, but doesn't convert characters to HTML entities? I need it for Markdown syntax.

Example:


&amp;gt; Quote


Would be (the same, no XSS):


&amp;gt; Quote


But this (or any other input with XSS in it):


&amp;gt; Quote &amp;lt;script&amp;gt;alert(1)&amp;lt;/script&amp;gt;


Would be (input with XSS removed):


&amp;gt; Quote


Is HTML Purifier able to do it? :)</description>
        <link>http://htmlpurifier.org/phorum/read.php?3,6247,6247#msg-6247</link>
        <lastBuildDate>Sat, 25 May 2013 12:52:00 -0400</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?3,6247,6252#msg-6252</guid>
            <title>Re: Remove XSS, but don't convert to HTML entities</title>
            <link>http://htmlpurifier.org/phorum/read.php?3,6247,6252#msg-6252</link>
            <description><![CDATA[<p>Yeah, that's not going to work.</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>Support</category>
            <pubDate>Fri, 09 Mar 2012 12:53:46 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?3,6247,6251#msg-6251</guid>
            <title>Re: Remove XSS, but don't convert to HTML entities</title>
            <link>http://htmlpurifier.org/phorum/read.php?3,6247,6251#msg-6251</link>
            <description><![CDATA[<p>Well, that's shame. I was planning to run Markdown on client-side. :(</p>]]></description>
            <dc:creator>daGrevis</dc:creator>
            <category>Support</category>
            <pubDate>Fri, 09 Mar 2012 12:50:26 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?3,6247,6250#msg-6250</guid>
            <title>Re: Remove XSS, but don't convert to HTML entities</title>
            <link>http://htmlpurifier.org/phorum/read.php?3,6247,6250#msg-6250</link>
            <description><![CDATA[<p>Oh, I see. No, that's not possible. The encoding of all tags is very important for safety. Run Markdown before.</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>Support</category>
            <pubDate>Fri, 09 Mar 2012 12:43:39 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?3,6247,6249#msg-6249</guid>
            <title>Re: Remove XSS, but don't convert to HTML entities</title>
            <link>http://htmlpurifier.org/phorum/read.php?3,6247,6249#msg-6249</link>
            <description><![CDATA[<p>Well, no. According to <a href="http://htmlpurifier.org/demo.php?filter%5BAutoFormat.AutoParagraph%5D=0&amp;filter%5BAutoFormat.DisplayLinkURI%5D=0&amp;filter%5BAutoFormat.Linkify%5D=0&amp;filter%5BAutoFormat.RemoveEmpty%5D=0&amp;filter%5BAutoFormat.RemoveSpansWithoutAttributes%5D=0&amp;filter%5BNull_CSS.AllowedProperties%5D=1&amp;filter%5BCore.CollectErrors%5D=0&amp;filter%5BNull_HTML.Allowed%5D=1&amp;filter%5BNull_HTML.Doctype%5D=1&amp;filter%5BHTML.SafeObject%5D=0&amp;filter%5BHTML.TidyLevel%5D=medium&amp;filter%5BURI.DisableExternalResources%5D=0&amp;filter%5BNull_URI.Munge%5D=1&amp;html=%3E+Quote&amp;submit=Submit">demo page</a>.</p>

<pre>
&gt; Quote
</pre>

<p>...becomes:</p>

<pre>
&amp;gt; Quote
</pre>]]></description>
            <dc:creator>daGrevis</dc:creator>
            <category>Support</category>
            <pubDate>Fri, 09 Mar 2012 11:26:07 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?3,6247,6248#msg-6248</guid>
            <title>Re: Remove XSS, but don't convert to HTML entities</title>
            <link>http://htmlpurifier.org/phorum/read.php?3,6247,6248#msg-6248</link>
            <description><![CDATA[<p>It should do your specific examples already.</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>Support</category>
            <pubDate>Fri, 09 Mar 2012 11:20:11 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?3,6247,6247#msg-6247</guid>
            <title>Remove XSS, but don't convert to HTML entities</title>
            <link>http://htmlpurifier.org/phorum/read.php?3,6247,6247#msg-6247</link>
            <description><![CDATA[<p>Is it possible to configure HTML Purifier so it removes XSS, but doesn't convert characters to HTML entities? I need it for Markdown syntax.</p>

<p>Example:</p>

<pre>
&gt; Quote
</pre>

<p>Would be (the same, no XSS):</p>

<pre>
&gt; Quote
</pre>

<p>But this (or any other input with XSS in it):</p>

<pre>
&gt; Quote &lt;script&gt;alert(1)&lt;/script&gt;
</pre>

<p>Would be (input with XSS removed):</p>

<pre>
&gt; Quote
</pre>

<p>Is HTML Purifier able to do it? :)</p>]]></description>
            <dc:creator>daGrevis</dc:creator>
            <category>Support</category>
            <pubDate>Fri, 09 Mar 2012 10:10:17 -0500</pubDate>
        </item>
    </channel>
</rss>
