title: How can I escape a single quote?
body: <p>How can I escape a <code>'</code> (single quote) in HTML?</p>
  <p>This is where I'm trying to use it:</p>
  <pre><code>&lt;input type='text' id='abc' value='hel'lo'&gt;
  </code></pre>
  <p>The result for the above code is &quot;hel&quot; populated in the text box. I tried to replace <code>'</code> with <code>\'</code>, but this what I'm getting.</p>
  <pre><code>&lt;input type='text' id='abc' value='hel\'lo'&gt;
  </code></pre>
  <p>The result for the above code is &quot;hel&quot; populated in the text box.</p>
  <p>How can I successfully escape the single quotes?</p>