title: Too many characters in character literal while converting HTML Tag to Entity reference
body: <p>I have generated an HTML tag through C# code. I am able to render correctly in the text area. When I googled it, I found <a href="https://stackoverflow.com/questions/2502360/html-textarea-tag-how-to-correctly-escape">this</a>. To render the HTML tags in the text area, we need to convert the '&lt;','>' into HTML entity references. But when I am trying to replace using <code>String.Replace</code>, it throws an error: <strong>Too many characters in character literal</strong>
  .</p>
  
  <pre><code>string psHtmlOutput="&lt;html&gt;&lt;body&gt;&lt;table border='0' cellspacing='3' cellpadding='3'&gt;&lt;tr&gt;&lt;th&gt; Name &lt;/th&gt;&lt;th&gt;DomainName&lt;/th&gt;&lt;th&gt;DomainType&lt;/th&gt;&lt;th&gt;Defualt&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;india.local&lt;/td&gt;&lt;td&gt;india.local&lt;/td&gt;&lt;td&gt;Authoritative&lt;/td&gt;&lt;td&gt;True&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;";
  
  psHtmlOutput.Replace('&gt;','&amp;gt;');
  psHtmlOutput.Replace('&lt;','&amp;lt;');
  </code></pre>
  
  <blockquote>
    <p>Error: Too many characters in character literal</p>
  </blockquote>
  
  <p>Please help; how can I proceed?</p>