Looks interesting - I'm trying to find a satisfactory solution to all the html issues contained in feeds to my blog aggregation site www.blogotariat.com. I am using D5.7 on a PHP5 host.

I've installed the module, copied the library folder ie /modules/htmlpurifier/library and created a new input filter /admin/settings/filters/. When I click on configure I receive the following error:

Fatal error: Undefined class constant 'VERSION' in /public_html/blogotariat/modules/htmlpurifier/htmlpurifier.module on line 112

Line 112 has the following:

if (!defined('HTMLPurifier::VERSION') && version_compare(HTMLPurifier::VERSION, '3.1.0-dev', '>=')) {

Comments

Slim Pickens’s picture

I fixed the problem in the short term by removing the if test condition and the matching else construct but an update might be good.

Seems to be working OK for the moment - I'll watch with interest as the feeds come in.

ezyang’s picture

Hello, we've released 5.x-1.3 which fixes this specific problem. Your hotfix sort of works... you end up with some extra form elements (the forbidden attributes and elements) that don't actually work, but there are no errors. I strongly recommend, however, that you upgrade your version of HTML Purifier to 3.1.0rc1.

ezyang’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.