URL Conversion using PHP or Javascript
<p>I want to convert a the following URL</p>

<p><a href="http://mughalspak.com/index.php?func=page_cms&amp;cat_id=8&amp;page_id=33&amp;page_banner_image=" rel="nofollow">http://mughalspak.com/index.php?func=page_cms&amp;cat_id=8&amp;page_id=33&amp;page_banner_image=</a></p>

<p>to</p>

<p><a href="http://mughalspak.com/carriers" rel="nofollow">http://mughalspak.com/carriers</a></p>