How to convert signs in url/text to hex characters? (converting = to %3D)
<p>With the script I'm making, jquery is getting vars from url parameter. The value that its getting is an url so if its something like </p>

<p><code>http://localhost/index.html?url=http://www.example.com/index.php?something=some</code> </p>

<p>it reads:</p>

<pre><code>url = http://www.example.com/index.php?something
</code></pre>

<p>If its like</p>

<p><code>http://localhost/index.html?url=http://www.example.com/index.php?something%3Dsome</code></p>

<p>it reads:</p>

<p><code>url = <a href="http://www.example.com/index.php?something%3Dsome" rel="nofollow">http://www.example.com/index.php?something%3Dsome</a></code></p>

<p>which would register as a valid url. my question is how can I search for <code>=</code> sign in the <code>url</code> variable and replace it with hex <code>%3D</code> with jquery or javascript?</p>
