我正在重新编写一个旧的安装程序,该安装程序不再适用于使用WiX的Windows 10,并且我在我的注册表项中遇到了&
的编译错误(candle.exe)。
注册表值如下:
<RegistryValue Root='HKCR' Name='' Key='Access.Application.10\shell\New' Type='string' Value='&New'/>
我试图用反斜杠来逃避它,但是我真的不知道我可以从这里去哪里。
答案 0 :(得分:3)
XML中的某些字符必须由字符实体表示。 app.service('myService', function() {
var json = "";
this.initialize = function(data) {
json = data;
};
this.addInfoType = function(infoType) {
if(json !== '') {
json.infotypes.push(infoType);
} else {
throw new Error('no json');
}
}
});
// somewhere else
myService.addInfoType({
"infotype": "CC6789",
"syften": [
{
"syfteId": 0
}
]
});
表示为&
。