string escape into XML-Attribute

后端 未结 3 1135
别跟我提以往
别跟我提以往 2021-02-20 11:00

I had a look at string escape into XML and found it very useful.

I would like to do a similar thing: Escape a string to be used in an XML-Attribute.

The string m

3条回答
  •  别跟我提以往
    2021-02-20 11:12

    if it can be of any help, in several language, one uses createCDATASection to avoid all XML special characters.

    It adds something like this :

     ]]>
    

提交回复
热议问题