how to append anchor tag into parent of div?
<p>My html code is:</p>

<pre><code>&lt;div title="test" class="xyz"&gt;Tesing&lt;/div&gt; 
</code></pre>

<p>I want it to look like:</p>

<pre><code> &lt;a href='#'&gt; &lt;div  title="test" class="xyz"&gt;Tesing&lt;/div&gt;&lt;/a&gt;
</code></pre>

<p>How to do it using JavaScript?</p>
