parsing XML with ampersand

后端 未结 9 1387
孤城傲影
孤城傲影 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:54

    Your string doesn't contain valid XML, that's the issue. You need to change your string to:

    "
    

提交回复
热议问题