Welcome! » Log In » Create A New Profile

Adding b64 images support to the default whitelist

Posted by Sander 

Hi,

I would like to add b64 images support to the default whitelist.

Doing

$config->set('URI.AllowedSchemes', array('data' => true));

makes htmlpurifier let the images through, but it resets the entire default whitelist.

So, my question is, is it possible to add this setting to the default whitelist ?

Re: Adding b64 images support to the default whitelist
May 18, 2018 04:09PM

Yeah, this is a wart in the config object interface. The easiest thing to do is copy paste in the default and add the piece you want.

Sorry, you do not have permission to post/reply in this forum.