m.kerkeni m.kerkeni - 1 year ago 103
HTML Question

Allow background-image : with embedded data in html purifier

I'm new to html purifier and I'm trying to configure this library according to my needs.

So I have got this html source :

<div style="background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAA8CAYAAABIFuztAAA....);">Text</div>

My config is :

$config->set('URI.AllowedSchemes', array('http' => true, 'https' => true, 'mailto' => true, 'ftp' => true, 'nntp' => true, 'news' => true, 'data' => true));

Answer Source
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download