المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to create an HTML replacement string that has multiple quotes inside of it? [modified]



C# Programming
01-29-2011, 09:41 AM
I searched and found this post, but if I understand this correctly it will not work in my situation

http://www.codeproject.com/Messages/1907458/Re-Big-html-string-How-to-store-them.aspx[^ (http://www.codeproject.com/Messages/1907458/Re-Big-html-string-How-to-store-them.aspx)]

How can I set a long string with multiple quotes inside of it to a single string variable? I want to hard code this so I can do a string replace. Thanks for reading!

An example would be


string htmltoreplace1 = @"http://www.barakasoft.com/vb/</span>/_layouts/images/blank.gif<span class=http://www.barakasoft.com/vb/</span>/_layouts/images/blank.gif<span class=http://www.barakasoft.com/vb/</span>/_layouts/images/blank.gif<span class=http://www.barakasoft.com/vb/</span>/_layouts/images/blank.gif<span class="
or

string htmltoreplace2 = @" "
modified on Friday, January 28, 2011 1:39 PM