I'm researching PHP security best practices and specifically the HTML Purifier library.
I like the idea of using a third-party library to help strengthen the security of my sites, but I'm confused about a few things...
First, a general question... What does HTML Purifier do that practicing secure PHP programming can't?
If I'm using HTML Purifier, does that mean I get to skip common security measures like using PHP functions to filter input and escape output?
One of the response comments for this question seems to suggest that HTML Purifier is only needed for elements that allow HTML tags, such as WYSIWYG editors. Is this correct?
Has anyone noticed a performance lag from using HTML Purifier? This article makes it seem like performance impact is worth considering.
Are there any up-to-date tutorials on integrating HTML Purifier with a non-framework PHP application? Everything I've found is either old or framework-specific.
Just to confirm that I've done my homework before asking this...
This question is essentially the same as mine, but the lone response seems to just list another best practice that the asker forgot to mention
This 'bountiful' question is a terrific resource about HTML Purifier and HTML5, but assumes foundational knowledge
This comparison page on HTML Purifier's site is more of a comparison to other filters