What is the escape sequence for &-sign in string literals in web.config?
在web.config中的字符串文字中&-sign的转义序列是什么?
3 个解决方案
#1
20
& -> &
& - >,
here: What characters do I need to escape in XML documents?
这里:在XML文档中需要转义哪些字符?
#2
2
Use "&"
instead of "&"
.
用“&;”代替“&”。
#3
0
I'm afraid the &
doesn't work in web.config, it must have stricter rules than normal XML:
我担心,没有在网上工作。配置,它必须有比普通XML更严格的规则:
<add key="ST_CF_AppType_ipad" value="http://itunes.apple.com/se/app/itunes-u/id490217893?l=en&mt=8" />
Gives an error occurred while parsing EntityName
.
在解析EntityName时发生错误。
#1
20
& -> &
& - >,
here: What characters do I need to escape in XML documents?
这里:在XML文档中需要转义哪些字符?
#2
2
Use "&"
instead of "&"
.
用“&;”代替“&”。
#3
0
I'm afraid the &
doesn't work in web.config, it must have stricter rules than normal XML:
我担心,没有在网上工作。配置,它必须有比普通XML更严格的规则:
<add key="ST_CF_AppType_ipad" value="http://itunes.apple.com/se/app/itunes-u/id490217893?l=en&mt=8" />
Gives an error occurred while parsing EntityName
.
在解析EntityName时发生错误。