When I have a link like http://site.com, clicking it goes to that URL just fine.
But when the link is just www.site.com
, it adds this URL to the parent website and consequently does not go to the URL.
So, clicking on <a href='www.site.com'>site</a>
creates this in the browser taskbar: www.parentsite.com/www.site.com
.
How can I fix this without using preg_replace
? I am fairly new to this game.