Hello!
I'm using DOM's loadHTMLFile
to grab a page from elsewhere.
I need to find all hyperlinks on the page and then append them so they begin with another, fixed address. E.G.:
Take:
<a href="http://www.google.com"> Google yay! </a>
And turn it into:
<a href="http://cheese.com/http://www.google.com"> Google yay! </a>
Unsure of how to go about doing this. Many thanks in advance for any help. E-Beer for the correct answer.