Zend Framework Proposal: Zend\Html\Filter (HTML Sanitisation And Manipulation)
This was the core of the idea that became Wibble, my prototype for ZendHtmlFilter. 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.
0 Responses to Zend Framework Proposal: Zend\Html\Filter (HTML Sanitisation And Manipulation)