Blogs about portland oregon web design | Blogs about portland oregon web development | Blogs about portland oregon online marketing
Maugrim The Reaper's Blog
Pádraic Brady on PHP, PHP Game Development and More

RSS: Maugrim The Reaper's Blog - Pádraic Brady on PHP, PHP Game Development and More
  • Zend Framework Proposal: Zend\Html\Filter (HTML Sanitisation And Manipulation)
    For a while now, I've been keen to build a HTML Sanitisation solution for PHP. Where else would I end up putting it other than in Zend Framework? As I've explored in past articles [1] [2], HTML Sanitisation in PHP is a very inconsistent practice. Sanitisers like HTMLPurifier are very secure out of the box but undeniably slow and resource intensive while others based on regular expression powered HTML parsing are much faster but tend to lose out a lot in the security stakes. Isn't it possible to create a sanitiser that is both secure by default and performs well?

    This was the core of the idea that became Wibble, my prototype for Zend\Html\Filter. Wibble borrowed sanitisation routines from a few programming languages to ensure secure operation, but relied entirely on PHP DOM and HTML Tidy for speed and HTML parsing. The resulting prototype was benchmarked [1] which proved that while Wibble could be faster than even regular expression based sanitisers (in scenarios where HTML was being manipulated) it most definitely would be faster than HTMLPurifier - without sacrificing security. Thus Wibble is capable of the best of both worlds - security and performance. The existing tradeoff in current solutions no longer applies.

    You may read and comment on the proposal here: http://framework.zend.com/wiki/pages/viewpage.action?pageId=25002168. The proposal is up for review for Zend Framework 2.0.

Our Locations

Serum, Portland, OR, USA


107 SE Washington St., Suite 265
Portland, OR 97214
United States
Get Directions

Phone: +1 (503) 345-6440
Fax: +1 (503) 954-2179


Serum has been working with web start-ups and offline companies alike to create solid web strategies,design effective, intuitive user experiences, custom develop functional applications that actually work, and leverage the latest online marketing tactics to grow their reach. In short, we create catalysts for online success.  Contact us to learn more, or explore career opportunities with our talented team in the U.S or Europe.

Let’s Be Social

VISIT OUR BLOGS

Web Development,  Online Strategy & Marketing,  Web Design

RELATIONSHIPS MATTER

Facebook, Myspace, Twitter, Flickr
Send Us an Inquery Or Call Toll Free 1 (877) 499-5549