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=""laugh"" src="%5C" title=""laugh"">
I have tried changing the configuration settings; but I the src is never preserved. Any thoughts?
I have a suspicion that magic_quotes could be a reason..?
Also did you try
$config->set('Core.RemoveInvalidImg',true);. Which version are you using? (Try older or newer)