parsing XML with ampersand

后端 未结 9 1400
孤城傲影
孤城傲影 2020-11-30 12:21

I have a string which contains XML, I just want to parse it into Xelement, but it has an ampersand. I still have a problem parseing it with HtmlDecode. Any suggestions?

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 12:51

    Perhaps consider writing your own XMLDocumentScanner. That's what NekoHTML is doing to have the ability to ignore ampersands not used as entity references.

提交回复
热议问题