title: How to replace a tag using jsoup
body: <p>I want to replace all image tags with <code>div</code> tag. I am able to select all tags and I know that I have to use <code>replaceWith</code>. But I am unable to use it. </p>
  
  <p>And if I use <code>TextNode</code> for replacing it with <code>&lt;div&gt; &lt;/div&gt;</code> and it converts into <code>&amp;amp;lt;div&amp;amp;gt; my div &amp;amp;lt;/div&amp;amp;gt;</code></p>
  
  <p>I know <code>&amp;amp;lt;</code> and <code>&amp;amp;gt;</code> is for <code>&lt;</code> and <code>&gt;</code></p>
  
  <p>Please help me.</p>