allowing inline css style background-image: url()
February 24, 2018 09:32AM

how do i enable background-image css inline style?

I've set these config, but still doesn't work;

$config->set('Core.Encoding', 'UTF-8');

$config->set('HTML.Doctype', 'HTML 4.01 Transitional');

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

$config->set('CSS.Proprietary', true);

$config->set('CSS.Trusted', true);

$config->set('CSS.AllowedProperties', array('background-image'));


from this input for example:

<div style="background-image: url('');"></div>


the result always like this:

<div style="background-image: url(;"></div>


what did I miss??

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