htmlpurifier

PHP [function.require]: failed to open stream: No such file or directory problem.

I get the following error in one of my function includes. require(../htmlpurifier/library/HTMLPurifier.auto.php) [function.require]: failed to open stream: No such file or directory I can correct this problem if I code the path ./htmlpurifier/library/HTMLPurifier.auto.php But I want to display the include file in many different lev...

Allow embed tag in HTMLPurifier?

I use this configuration: $config = HTMLPurifier_Config::createDefault(); $config->set('Core.Encoding', 'UTF-8'); $config->set('HTML.Doctype', 'XHTML 1.0 Strict'); $config->set('HTML.SafeObject', true); $config->set('Output.FlashCompat', true); $config->set('HTML.Allowed', 'object[width|height|data],param[name|value],embed[src|type|allo...

How do I allow images in the HTMLPurifier?

I want to allow images within my HTML Purifier filter. Unfortunately they are still being filtered. WHat is wrong with this code? $config->set('HTML.Doctype', 'XHTML 1.0 Transitional'); $config->set('URI.DisableExternalResources', false); $config->set('URI.DisableResources', false); $config->set('HTML.Allowed', 'u,p,b,i,span[style],p,st...

HTMLPurifier Breaking Images

I'm trying to run HTMLPurifier on user input from a WYSIWYG (CK Editor) and the images are breaking. Unfiltered Input: <img alt="laugh" src="/lib/ckeditor/plugins/smiley/images/teeth_smile.gif" title="laugh"> After running through purifier with default settings: <img alt="&quot;laugh&quot;" src="%5C" title="&quot;laugh&quot;"> I h...