Error in formatting the POST URL,because of spaces inside the parameter
<p>Hi All
I am building an URL which is stored as varible to be available for a tab on clicking as below.</p>

<p>The parmeters of the URL are some constants and strings.
So in one param the user has entered in the Textarea coulmn as</p>

<pre><code>This is
to be
removed 
immediately
</code></pre>

<p>and so on build of URL the browser is throwing 'unterminated string literal'</p>

<p>Below is the URL as seen in 'view source'</p>

<pre><code>&lt;script type="text/javascript"&gt;var tab3700Action = "/PM/action/showTaskCompletionStatus?preventSTIES=
&amp;deadlinedate=4/22/2005&amp;date=4/21/2005&amp;orggroup=27&amp;effectivedate=4/22/2005&amp;taskid=2
&amp;comments=This is
to be
removed 
immediately&amp;selected_taskid=2&amp;orgfilterDISP=&amp;taskname=Recall Meat
&amp;equation=&amp;tasktypeid=283&amp;successRedirectAction=showTaskCompletionSummary
&amp;estimatedduration=2:00&amp;org=545";
&lt;/script&gt;
</code></pre>
