(iOS)以XML格式转义单引号

时间:2017-10-20 13:58:25

标签: ios xml

我在xml中编写了以下代码:

var invalidLastNameMessage="We're sorry, but that last name doesn't match our records.";

当我检查IOS设备(ipod / iphone)时,它应该是:

We're sorry, but that last name doesn't match our records.

但它显示如下:

We're sorry, but that last name doesn't match our records.

有谁能解释为什么会这样?

1 个答案:

答案 0 :(得分:0)

如果它被自动转义我不会感到惊讶。好像它逃脱了

We're

We'apos;re

你试过给它一个非转义值吗?