I have a line with special characters like:
äöüß &
Now I want to put this in an HTML document and avoid these characters. Is there an elegant way to do this?
I could do this:
string html; html = html.Replace("ü", "uu¨"); html = html.Replace("ß", "ß"); ....
But I do not want to do this for all possible special characters.
source share