title: Call a function inside a custom data-attr?
body: <p>Given a current CMS we are working in, I need to call functions within a custom data-attribute. Is it possible to call the contents of a data attribute as a function to run like below? Simple example:     </p>
  
  <p>Set</p>
  
  <pre><code> &lt;button data-function="alert('hello world')"&gt;Run Function&lt;/button&gt;
  </code></pre>
  
  <p>Run</p>
  
  <pre><code>$('button').attr('function');
  </code></pre>
  
  <p>I believe the above is just getting the contents and not actually executing anything when written. </p>
  
  <p>Is this possible?</p>