I want to replace all image tags with a div tag. I can select all the tags, and I know that I need to use replaceWith . But I canβt use it.
And if I use TextNode to replace it with <div> </div> and it converts to &lt;div&gt; my div &lt;/div&gt; &lt;div&gt; my div &lt;/div&gt;
I know &lt; and &gt; for < and >
Please help me.
source share