Escaping + character when read to passed as ajax data (to prevent concatenation)
<p>I'm reading the value of an input text field and passing it to be used as ajax data</p>

<p>The field value has a <code>+</code></p>

<pre><code>&lt;input name="someval" type="text" value="Receive (+ open)" /&gt;
</code></pre>

<p>and looks like when parsed with data, it parses the + as a jquery concatenation.</p>

<pre><code>data: 'someval=' + $("input[name=someval]").val(),
</code></pre>

<p>This is the first time I notice this behavior. </p>

<ul>
<li>First, how do I solve it.</li>
<li>Second, I have no way of knowing when the output might have these special chars, so is there a known best practice way to escape input so that whenever it happens we're covered?</li>
</ul>

<p>Thanks</p>
