i have html and contain many links like this:
<a href="http://www.mydomain1.com">Click Me</a>
i would like to:
copy its original link: http://www.mydomain1.com
append text infront it: test.php?url=http://www.mydomain1.com
so that the final output for all href to become:
<a href="test.php?url=http://www.mydomain1.com">Click Me</a>
how to do this?