title: rest of the string after single quote is thrown away
body: <p><code>CKEDITOR.instances.content.getData()</code> has a text like  <strong><em>This is a' ball .</em></strong></p>
  
  <p>i send the following data  to a php page using ajax to store it to a database </p>
  
  <pre><code>var data="answer_body="+CKEDITOR.instances.content.getData()+"&amp;userpost_post_id=&lt;?php echo $contents[0]-&gt;post_id;?&gt;&amp;users_user_id=&lt;?php echo $userdata-&gt;user_id; ?&gt;";
  </code></pre>
  
  <p>But the answer body throws away rest of the text after quote.</p>
  
  <pre><code> $answer=addslashes($_POST['answer_body']);
     echo $answer; // it contains only -----------This is a
  </code></pre>
  
  <p>how i can solve this problem?</p>