I'm trying to use the javascript replace function to replace curly quote with straight quotes:
var EditedContent = content.replace(/“/g, '"');
This works great in a little proof of concept html file I've whipped up, but when it's in a visual studio project, it replaces the curly quote with a symbol that suggests 'unknown character':
How can I resolve this issue so that I can use the application properly when debugging?
Use unicode:
... = content.replace(/\u201C/g, '"');
You can find unicode equivalents of various quotes here.
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