NewBee string question
Posted on 2006-11-01
Im trying to collect these html tags into a string.
but i keep getting this error msg " Too many characters in character litteral "
I put some quotes around the double quotes but that didnt work eigther.
string tmpstr = '"<html><head><title>Html Strings</title></head><body bgcolor="Gold" bgproperties="fixed"><table border="0" width="900" height="328" bgcolor="Gold"><tr><td width="100%" valign="top" height="324"></td></tr></table></body></html>"';
the only way i can get this to work ,is to replace all double qoutes with single quotes ...eg. <body bgcolor='Gold' bgproperties='fixed'>
Is there a easy workaround about this or how can/would i make some method to strip off all double quotes and replace them with single quotes.