G
Guest
I'm allowing the user to enter a string of text which then gets displayed in
a panel. It works great except that if they enter 1 ampersand then it does
not display correctly. So I thought it was just a matter of using the String
Replace function to fix the problem.
I've tried: text.Replace("&", "&&");
but it doesn't work. I've also tried other variations but can't get it to
work.
Does anyone have any ideas?
a panel. It works great except that if they enter 1 ampersand then it does
not display correctly. So I thought it was just a matter of using the String
Replace function to fix the problem.
I've tried: text.Replace("&", "&&");
but it doesn't work. I've also tried other variations but can't get it to
work.
Does anyone have any ideas?