I am trying to use string.Remove to remove all occurrences of " in my html, but I forgot how to tell it to use " as a character instead of its usual meaning.
Thanks.
You have to escape it with \
, so write \"
instead of "
where you mean "
.
string.Remove removed part of the string based on start index, and length, so that is not what you are actually looking for, but replace will help you to get rid of all "
's.
myString.Replace("\"","")
\"
Simply escape the quotes with a backslash.
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