Escape double quote character in XML

前端 未结 8 1291
旧时难觅i
旧时难觅i 2020-11-29 07:55

Is there an escape character for a double quote in xml? I want to write a tag like:


but if I put \"

8条回答
  •  一个人的身影
    2020-11-29 08:37

    Here are the common characters which need to be escaped in XML, starting with double quotes:

    1. double quotes (") are escaped to "
    2. ampersand (&) is escaped to &
    3. single quotes (') are escaped to '
    4. less than (<) is escaped to <
    5. greater than (>) is escaped to >

提交回复
热议问题