How do I escape the & in the app settings? I've tried \ but didn't work?
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="preset" value="iPhone & iPod Touch"/>
</appSettings>
</configuration>
The & in the preset key value causes error Illegal Syntax Expecting valid start name character
You shouldn't escape it, bur rather encode it to &:
<add key="preset" value="iPhone & iPod Touch"/>
Try &
Try the above the string instead of &
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With