title: How to add html tags in title attribute of an element?
body: <p>I have a table and I want to add a title attribute to every td.</p>
  
  <p>The title text contains html tags also like for example <code>&lt;p&gt;testing &lt;b&gt;title&lt;/b&gt;&lt;/p&gt;</code></p>
  
  <p>When use this text as the value of the title attribute, and hover the mouse over the element, it also displays the html tags.</p>
  
  <pre><code>&lt;td title="&lt;p&gt;testing &lt;b&gt;title&lt;/b&gt;&lt;/p&gt;"&gt;abc&lt;/td&gt;
  </code></pre>
  
  <p>Is there any way to use the correct formatting in the title attribute?</p>
  
  <p>I am doing this in Drupal but if a php solution is present then I can use the php.</p>