I am encountering an issue where I have a string in my resource file that is being used in both my codebehind and in JavaScript, but it is causing errors in the JS portion.
The string in the resource file is: Par des changements de l'espace réservé
How can I use an escape character that will work effectively in all three cases?
1. For JavaScript (e.g., when comparing the inner text of a TD with the value from the resource)
2. In the codebehind (when setting the inner text of a TD with the resource value)
3. In ASPX (when setting the text property of a label with the resource value)
Especially, how should I handle single quotes?
If I try using the value in the resource file with a backward slash escape character, it will be printed with the slash in the codebehind: Par des changements de l\'espace réservé