How can I escape double quotes in XML attributes values?

前端 未结 4 1458
盖世英雄少女心
盖世英雄少女心 2020-12-02 14:50

From the following trials


\">

Only the last one wor

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 15:33

    From the XML specification:

    To allow attribute values to contain both single and double quotes, the apostrophe or single-quote character (') may be represented as "'", and the double-quote character (") as """.

提交回复
热议问题