Parameter value contains white space in jQuery function

Parameter value contains white space in jQuery function

<div>HI All,</div>
<div> </div>
<div>I am preparing the data values{paramName:value} from the html page and passing to the jQuery function. But the parameter value contains white space or any special character so it is giving error 'Unterminated string'. </div>
<div> </div>
<div>Is thier any way I can get the same parameter value with the space and white character? As i need to save the data in the data base in the exact format.</div>
<div> </div>
<div>Thanks in Advance. !!!!!!!!!!</div>