<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to migrate to PDO without it hurting&#8230; much</title>
	<atom:link href="http://www.greebo.net/2010/01/02/how-to-migrate-to-pdo-without-it-hurting-much/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.greebo.net/2010/01/02/how-to-migrate-to-pdo-without-it-hurting-much/</link>
	<description>mostly useless crap from me</description>
	<lastBuildDate>Sat, 24 Jul 2010 11:56:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Benoit</title>
		<link>http://www.greebo.net/2010/01/02/how-to-migrate-to-pdo-without-it-hurting-much/comment-page-1/#comment-21323</link>
		<dc:creator>Benoit</dc:creator>
		<pubDate>Tue, 05 Jan 2010 12:42:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.greebo.net/?p=602#comment-21323</guid>
		<description>Great post, and great aim to rewrite your app.

As of sanityzing output, once we had to do it for a really old CMS app, started in 99 with ASP/access then migrated to PHP in 2003. In 2008 we had to integarate the front office part to support IE7/8

The HTML contents in database got a low risks of injection (no public comments or such), but it was so ugly generated by poor WYSIWYG editor, has MsWord metadata in it.As a consequence IE7 was crashing some times (really) and other browser mostly stop rendering content seeing as much of MS Word crappy css and proprietary tags.

We used HTML purifier to clean up this, but after some testing it was too slow to run on the fly. 
While refactoring the app we made a data sanitization script to clean up the markup stored in DB, and we adjusted the back office app to do the same before saving data.

This way we can trutly pull HTML content from database.

All this to say, HTMLPurifier helped us cleaning up empty or invalid HTML tags, but it can also (and apparently does it very well) filter XSS attempts and various bunch of malicious code.</description>
		<content:encoded><![CDATA[<p>Great post, and great aim to rewrite your app.</p>
<p>As of sanityzing output, once we had to do it for a really old CMS app, started in 99 with ASP/access then migrated to PHP in 2003. In 2008 we had to integarate the front office part to support IE7/8</p>
<p>The HTML contents in database got a low risks of injection (no public comments or such), but it was so ugly generated by poor WYSIWYG editor, has MsWord metadata in it.As a consequence IE7 was crashing some times (really) and other browser mostly stop rendering content seeing as much of MS Word crappy css and proprietary tags.</p>
<p>We used HTML purifier to clean up this, but after some testing it was too slow to run on the fly.<br />
While refactoring the app we made a data sanitization script to clean up the markup stored in DB, and we adjusted the back office app to do the same before saving data.</p>
<p>This way we can trutly pull HTML content from database.</p>
<p>All this to say, HTMLPurifier helped us cleaning up empty or invalid HTML tags, but it can also (and apparently does it very well) filter XSS attempts and various bunch of malicious code.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
