title: single quote is creating issue in jquery. Prints &#39;
body: <p>My code is </p>
  
  <pre><code>var subject = $("#subjectText").val();
  $("#subjectText").val("Re: " + subject);
  </code></pre>
  
  <p>where <code>$("#subjectText").val()</code> is <code>"MyMessage' My'Message"</code></p>
  
  <p>but while showing it to the user <code>$("#subjectText")</code> is shown as <code>"MyMessage&amp;#39; My&amp;#39;Message"</code></p>
  
  <p>What could be the best js solution for this?</p>