title: How can I configure HTML Purifier to allow data URIs for image src?
body: <p>How can I allow base64 data for the the src attribute of image tags? I see code like this:</p>
  
  <pre><code>$config-&gt;set('URI.AllowedSchemes', array('http' =&gt; true, 'https' =&gt; true, 'mailto' =&gt; true, 'ftp' =&gt; true, 'nntp' =&gt; true, 'news' =&gt; true, 'data' =&gt; true));
  </code></pre>
  
  <p>In this case, is it <code>data =&gt; true</code> which allows the base64? And if so, how can I allow base64 data only for the src attribute of the img tag? (I do not want to allow data URIs in other situations.)</p>
  
  <p>I thought of doing something like: </p>
  
  <pre><code>$ def-&gt; addAttribute ('a', 'target', 'Enum # _blank, _self, _target, _top');     
  </code></pre>
  
  <p>But in my case like this: </p>
  
  <pre><code>$ def-&gt; addAtribute ('img', 'src', 'Enum # data, http, https, ...);
  </code></pre>
  
  <p>Is this possible?</p>