title: Certain Characters Deleted When Submitted Through POST
body: <p>I have two issues</p>
  
  <ol>
  <li>When I submit the character <code>'</code> through my HTML form (using POST) it is fine. However, in the form I allow to modify the submitted content, when it is brought in, anything after the <code>'</code> disappears. I've deduced that this is because when I assign the text content containing the <code>'</code> to the text field, it closes the quote. For example, if I submit Hello there I'm John, it will do: <code>&lt;input type=text value='Hello there I'm Jon /&gt;</code>
  So you see, the apostrophe in <code>I'm</code> closes the quote for the value attribute. So the only solution I can think of would be to escape the apostrophe, but even when I leave my mysql_real_escape_string() function on the content (as it's submitted to a database escaped and retrieved for this form). </li>
  <li>Similarly, when I submit an <code>&amp;</code> or a <code>+</code>, it disappears. This happens any time I try to print it anywhere, regardless of using the <code>htmlspecialchars()</code> function (which I was under the impression should encode them in HTML format for such characters, like: <code>&amp;amp;</code>). so as an example, if someone enters <code>Me &amp; you</code> then it will be displayed as <code>Me  you</code>.</li>
  </ol>
  
  <p>So I'm asking: How can I fix the above issues, seeming to have to do with special characters, despite already having them escaped (and I even tried applying the escape function again)? If there is any sample code I should supply, please let me know, but I've explained what I am doing to each input.</p>