<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 18 May 2013 06:51:21 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[ZendCasts.com: Writing Custom Zend Filters with HTMLPurifier]]></title>
      <guid>http://www.phpdeveloper.org/news/16430</guid>
      <link>http://www.phpdeveloper.org/news/16430</link>
      <description><![CDATA[<p>
On the ZendCasts.com site there's a new screencast showing you how to create <a href="http://www.zendcasts.com/writing-custom-zend-filters-with-htmlpurifier/2011/06/">custom Zend filters with HTMLPurifier</a>, the <a href="http://htmlpurifier.org/">standards-compliant tool</a> that can remove potential issues from your HTML as well as restructure it to be more along the lines of the W3C specifications.
</p>
<p>
He shows how to set up the HTMLPurifier tool into your Zend Framework application so you can use it as a filter on your view's output. He sets it up as a new filter, ZC_Filter_HTMLPurifier, and creates the basic filtering interface library to make it work. 
</p>
<p>
You can find out more about using filters in Zend Framework applications in <a href="http://framework.zend.com/manual/en/zend.filter.html">this section</a> of the manual. 
</p>]]></description>
      <pubDate>Mon, 06 Jun 2011 11:07:13 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Padraic Brady's Blog: CodeIgniter 2.0.2: Cross-Site Scripting (XSS) Fixes And Recommendations]]></title>
      <guid>http://www.phpdeveloper.org/news/16320</guid>
      <link>http://www.phpdeveloper.org/news/16320</link>
      <description><![CDATA[<p>
<i>Padraic Brady</i> has a new post looking at a cross-site scripting issue he came across when working with CodeIgniter 2.0.2 and <a href="http://blog.astrumfutura.com/2011/05/codeigniter-2-0-2-cross-site-scripting-xss-fixes-and-recommendations/">some fixes and recommendations</a> he has about correcting the situation.
</p>
<blockquote>
EllisLabs' news release for CodeIgniter 2.0.2 makes mention of "a small vulnerability". This small vulnerability is mentioned no where else (not even the actual changelog for 2.0.2). In reality, I reported seven distinct vulnerabilities across two classes. These vulnerabilities might allow an attacker to inject arbitrary HTML, CSS or Javascript, i.e. Cross-Site Scripting (XSS) into an application's output. 
</blockquote>
<p>
He gives a list of four recommendations that CodeIgniter 2.0.2 users can take to creating (or updating) their applications including using <a href="http://htmlpurifier.org/">HTMLPurifier</a> when you need sanitization and ensuring that views and templates from third parties are clear of XSS issues.
</p>]]></description>
      <pubDate>Tue, 10 May 2011 11:12:55 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Juozas Kaziukenas' Blog: HTML filtering and XSS protection]]></title>
      <guid>http://www.phpdeveloper.org/news/12186</guid>
      <link>http://www.phpdeveloper.org/news/12186</link>
      <description><![CDATA[<p>
<i>Juozas Kaziukenas</i> has <a href="http://dev.juokaz.com/php/html-filtering-and-xss-protection">an example</a> of how to keep you and your application's data safe from prying eyes by filtering input with the <a href="http://htmlpurifier.org/">HTML_Purifier</a> package.
</p>
<blockquote>
It's really hard to decide what data is acceptable, especially when user has permission to insert HTML content through form. [...] However, problem can be solved, and quite easily. Almost a year ago I was reading some random blog when I find out about <a href="http://htmlpurifier.org/">HTML Purifier</a>. Basically, it's library which can filter and fix any HTML. 
</blockquote>
<p>
He gives an example - running a web scraping tool against a site with malformed HTML. By running it through the HTML_Purifier package first, the errors were corrected and the "more correct" HTML source could be parsed easily. The package also helps to protect from XSS attacks via a <a href="http://htmlpurifier.org/live/smoketests/xssAttacks.php">whole set of filters</a> included by default.
</p>]]></description>
      <pubDate>Mon, 23 Mar 2009 10:21:49 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Padraic Brady's Blog: Zend Framework Blog Tutorial - Part 8: Create/Add Blog Entries (HTMLPurifier)]]></title>
      <guid>http://www.phpdeveloper.org/news/10180</guid>
      <link>http://www.phpdeveloper.org/news/10180</link>
      <description><![CDATA[<p>
<i>Padraic Brady</i> has <a href="http://blog.astrumfutura.com/archives/365-Example-Zend-Framework-Blog-Application-Tutorial-Part-8-Creating-and-Editing-Blog-Entries-with-a-dash-of-HTMLPurifier.html">posted part eight</a> of his series guiding you through his construction of Zend Framework-based blogging software:
</p>
<blockquote>
In Part 8 of the ongoing saga describing how to build a real world blog application using the Zend Framework we finally reach the point at which we concentrate on blog entries. At the end of this Part, we will be able to create and edit entries in preparation for Part 9 when we will explore displaying them to the world!
</blockquote>
<p>
In <a href="http://blog.astrumfutura.com/archives/365-Example-Zend-Framework-Blog-Application-Tutorial-Part-8-Creating-and-Editing-Blog-Entries-with-a-dash-of-HTMLPurifier.html">this part</a>, he shows how to add in the Entry controller with an Add action inside (and what code goes in them). He makes a Zend_Form extended form and throws in some validation, a use of HTMLPurifier and the code to push these entries into your database.
</p>]]></description>
      <pubDate>Wed, 14 May 2008 09:34:34 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Padraic Brady's Blog: HTMLPurifer 3.1.0 Release Candidate Available]]></title>
      <guid>http://www.phpdeveloper.org/news/10021</guid>
      <link>http://www.phpdeveloper.org/news/10021</link>
      <description><![CDATA[<p>
<i>Padraic Brady</i> has <a href="http://blog.astrumfutura.com/archives/352-HTMLPurifer-3.1.0-Release-Candidate-Available.html">noted</a> that the latest release candidate of the HTMLPurifier software has been posted for download:
</p>
<blockquote>
HTMLPurifer is possibly the most understated underpublicised quality library in PHP today. I consider it a fundamental standard library that is automatically included in every PHP web application I start these days.
</blockquote>
<p>
This latest <a href="http://htmlpurifier.org/news/2008/3.1.0rc1-released.html">release candidate</a> (their first!) includes updates on two major features - the use of autoloading and a change to the way you use the filters. Check out <a href="http://htmlpurifier.org/demo.php">a demo</a> of it in action or just <a href="http://htmlpurifier.org/download.html">download</a> this latest release and try it out for yourself.
</p>]]></description>
      <pubDate>Wed, 23 Apr 2008 09:31:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mindloop Blog: Htmlpurifier and the CodeIgniter framework]]></title>
      <guid>http://www.phpdeveloper.org/news/8224</guid>
      <link>http://www.phpdeveloper.org/news/8224</link>
      <description><![CDATA[<p>
From the Mindloop blog today, there's a <a href="http://www.mindloop.be/nieuws/nieuwe-ontwikkelingen/htmlpurifier-and-the-codeigniter-framework">quick new tutorial</a> on getting <a href="http://htmlpurifier.org/">HtmlPurifier</a> to work happily with the <a href="http://www.codeigniter.com">CodeIgniter</a> framework.
</p>
<blockquote>
HtmlPurifier is a standards-compliant HTML filter library written in PHP. HTML Purifier will not only remove all malicious code (better known as XSS) with a thoroughly audited, secure yet permissive whitelist, it will also make sure your documents are standards compliant. [...] Although Codeigniter comes with it's own XSS filtering method, I prefer the use of the HtmlPurifier.
</blockquote>
<p>
Installation is simple, involving only a four step process (including the download) and using it is just as easy. It's (basically) just a matter of loading the library and calling the purify method to output the corrected HTML.
</p>]]></description>
      <pubDate>Wed, 11 Jul 2007 12:40:00 -0500</pubDate>
    </item>
  </channel>
</rss>
