0

I am trying to wrap an img tag with div tag using Sgml reader and XElement Here is my code:

currentImageElement.AddBeforeSelf("< div >"); (without spaces)

The problem is it escapes the < and > chars, the result in the source is: & lt; div & gt; Is there any way to unescape those tags so that it will be a real div tag and not text?

Sid M
  • 4,354
  • 4
  • 30
  • 50
Slash7GNR
  • 479
  • 4
  • 13

0 Answers0