title: How to replace whole HTMLElement's text to something else?
body: <p>Here's the example.</p>
  
  <p>webBrowser1.Document.Body.InnerHtml contains:</p>
  
  <p><code>&lt;img id="image1" src="myImage.gif"&gt;</code> </p>
  
  <p>and in my MyWebBrowser class I want to replate whole img tag to some text, for example to string: "&amp;ltmyImage&amp;gt" (I need it for my chat application, if user doesn't want to see images)</p>
  
  <p>I thought I could do something like that:</p>
  
  <pre><code>Document.GetElementById("image1").InnerHtml = "&amp;lt" + Document.GetElementById("image1").GetAttribute("src") + "&amp;gt";
  </code></pre>
  
  <p>but it throws exception.</p>
  
  <p>Actually I resolved that by searching those specific tags in whole document and replacing it using String class' methods, but code doesn't look good. If there's more effective way to do that, do not bother answering my question.</p>