How to create a hyperlink from the data I get from a website with php
<p>I'm in the middle of a stuggle here, I successfully return data from a website, but then the hyperlink from the site returns as text instead of a link. I wonder if there is any way that I can return it as a link. Also is it possible to display the information inside the hyperlink?</p>

<pre><code>&lt;div data-role="content"&gt;
    &lt;div class="content-primary"&gt;
    &lt;?php
    $query = 'http://query.yahooapis.com/v1/public/yql?q=Select%20*%20From%20rss%20where%20url%3D%22http%3A%2F%2Fworldoftanks.com%2Fnews%2Frss%2F%22&amp;diagnostics=true';
    $xml = simplexml_load_file($query);
    //var_dump($xml);
    echo '&lt;h2&gt;World of Tank News&lt;/h2&gt;';
    //iterate over query result set
    $results = $xml-&gt;results;
    foreach ($results-&gt;item as $r){
        echo $r-&gt;title . "&lt;br /&gt;";
        echo $r-&gt;link . "&lt;br /&gt;&lt;br /&gt;";
    }

    ?&gt;
    &lt;/div&gt;
</code></pre>
