I'm trying to get content of a specific URL
using cURL
$ch= curl_init();
curl_setopt($ch, CURLOPT_URL,
"http://stackoverflow.com//");
$output= curl_exec($ch);
curl_close($ch);
Now I want to display markup just as text, I'm write the following code snippet:
<div class="content">
<pre>
<?php
echo $output;
?>
</pre>
</div>
But when I'm trying to display markup there is no div, pre
and others my markup's element. I can see the stackoveflow.com
only. How to fix this?