title: allowing data-* attributes with HTMLPurifier
body: <p>Currently I am using this code with HTMLPurifier to allow <code>data-*</code> HTML tag attributes:</p>
  
  <pre><code>    $def = $config-&gt;getHTMLDefinition(true);
      $def-&gt;addAttribute('div', 'data-aaa', 'Text');
      $def-&gt;addAttribute('div', 'data-bbb', 'Text');
      // ...
  </code></pre>
  
  <p>Is there a way I can allow all <code>data-*</code> attributes at once, preferable on all the HTML tags? (they are not a security problem in my case - to the best of my knowledge of course)</p>