Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 Sgml 阅读器和 XElement 来包装img tag这div tag是我的代码:
img tag
div tag
currentImageElement.AddBeforeSelf("< div >");(没有空格)
currentImageElement.AddBeforeSelf("< div >");
问题是它转义了 < 和 > 字符,源代码中的结果是:& lt; div & gt; 有没有办法取消转义这些标签,使其成为真正的 div 标签而不是文本?
& lt; div & gt;