This doesn't seem to work:<br><br>url('<a href="http://example.com/with">example.com/with</a> spaces', array('absolute' => TRUE, 'external' => TRUE));<br><br clear="all">--<br>Regards,<br>
Nitin Kumar Gupta<br><a href="http://publicmind.in/blog/">http://publicmind.in/blog/</a><br>
<br><br><div class="gmail_quote">On Thu, Mar 11, 2010 at 8:15 PM, ekes <span dir="ltr"><<a href="mailto:ekes@aktivix.org">ekes@aktivix.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div class="im"><br>
On 11/03/10 14:17, nitin gupta wrote:<br>
> Thanks Earnie, but that is not what I am looking for. It is essentially<br>
> similar to urlencode or rawurlencode. I am looking for a function that does<br>
> the work like the one present at the bottom of the page here:<br>
><br>
> <a href="http://www.blooberry.com/indexdot/html/topics/urlencoding.htm" target="_blank">http://www.blooberry.com/indexdot/html/topics/urlencoding.htm</a><br>
<br>
</div>If I understand correctly you have full uris that you want to check<br>
(encode) before using them out there. Why not use parse_url<br>
<a href="http://php.net/manual/en/function.parse-url.php" target="_blank">http://php.net/manual/en/function.parse-url.php</a> to get the component<br>
parts and then pass them into url()<br>
<a href="http://api.drupal.org/api/function/url/6" target="_blank">http://api.drupal.org/api/function/url/6</a> (or l()) to get the sanitised<br>
correct version?<br>
<br>
ekes<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
Comment: Using GnuPG with Fedora - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
iEYEARECAAYFAkuZAf4ACgkQR9het8OQC6WpvQCgrfMvP2kQaNJb5YYhl94G0GAF<br>
s18AniVEyL+qXSkm/+eWAwN6cvFF3HYz<br>
=05vz<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br>