lab lab has invalid tokens when the string contain Apostrophe

Topics: Developer Forum
Nov 24, 2010 at 9:51 AM

hello I noticed that this exception [ ..... has invalid tokens ] raised when the string contains Apostrophe ,

 

is it only when the string contains Apostrophe , or there are other charachters

 

because I think it is better to replace those characters if any in the string  , than using encoding like server.htmlEncode in asp.net for instance

 

becuase I don't want to save an excel file that contains marks like &apos or &sd32 whatever  ...

 

what do think ?