D
D
Dima Avdoshin2020-11-05 12:47:24
ASP.NET
Dima Avdoshin, 2020-11-05 12:47:24

How can I pass a string special character along with a link?

Good afternoon, when I pass in a view string that contains a link
xmlns:xs= \" http://www.w3.org/2001/XMLSchema\ "
then the output I get is \" www.w3.org/2001/XMLSchema ", without the last \ character, with strings other than this everything works fine
Here is the latest version with which I am trying to replace

historyContactInfo = historyContactInfo.Replace(@"\r\n", string.Empty).Replace(@"\", string.Empty).Replace("\"",@" \" +"\"");

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-11-05
@D1m0nd

URL encode will help you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question