Best practice for handling vertical tabs and other invalid xml characters

前端 未结 2 1353
日久生厌
日久生厌 2021-02-18 23:09

I have an application which (like many others) takes in user input, stores it in a database and then later processes it using (amongst other things) XML tools. The application t

2条回答
  •  滥情空心
    2021-02-18 23:48

    You should escape them using amperstand ( through �x1F), then decode/restore them at the end.

    See XmlTextWriter incorrectly writing control characters

提交回复
热议问题