I am using Johncms 4.4 , and I want to show current page url in my site .
Problem is , I tried with the following code
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
echo '<a href="'.$url.'">Page url</a>';
But it gives error
"This page contains the following errors:
error on line 49 at column 360: EntityRef: expecting ';'
Below is a rendering of the page up to the first error.
"
what to do ?