I want to create a configuration parameter to pass a string to my application. The line is based on some text from a web page, so I must allow it to be changed from the configuration file.
The line I want to pass is
a)
Forecast Summary:</b> <span class="phrase">
And the string literal format, which works when I use it to search on a page,
b)
string myString = "Forecast Summary:</b> \n <span class=\"phrase\">";
the problem is that the transmitted string (by inserting the text in (a) above in the application settings screen) passes in the format
with)
"Forecast Summary:</b> \r\n <span class=\"phrase\">"
(which has a carriage return inserted)
Is there a way to enter a string in App.Config as an "exact" string literal
source share