Make URL as an anchor tag in JavaScript?
<p>I am getting an URL as a input which I want to assign it to an anchor tag.</p>

<p>Suppose the URL is </p>

<pre><code>var url = "http://www.google.com";
</code></pre>

<p>I want to put this url like this</p>

<pre><code>&lt;a href="http://www.google.com"&gt;http://www.google.com&lt;/a&gt;
</code></pre>
