I want to create a configuration setting to pass in a string to my application. The string is based on some text from a web page which is the reason I need to allow for it to be changed from within a config file.
The string I want to pass in is
a)
Forecast Summary:</b>
<span class="phrase">
And the format of the string literal that works when I use it to search the page is
b)
string myString = "Forecast Summary:</b> \n <span class=\"phrase\">";
the problem is that the passed in string (by pasting the text in (a) above into the App Settings screen ) comes through in the format
c)
"Forecast Summary:</b> \r\n <span class=\"phrase\">"
(which has a carriage return inserted)
Is there a way to enter the string in the App.Config as the "exact" string literal