>>Hi,
>>
>>This should be an easy one for someone.
>>
>>I have code like this:
>>
>>
message = "This plan is not applicable for the Insured's Age and/or Sum Assured";
>>
>>but when this string is displayed, it cuts off at the apostrophe. I've tried it like this:
>>
>>
message = @"This plan is not applicable for the Insured's Age and/or Sum Assured";
>>
>>but the same thing. How do I get this to display the full string?
>
>It's probably getting clipped in the HTML when it's rendered. For example, if you display an image and set the ALT tag using single quote delimiters:
>
>
><img src="/myimg.jpg" alt='This plan is not applicable for the Insured's Age and/or Sum assumed' /
>
>
>Notice that the single quote in Insured's terminates the starting quote, which would explain why it's clipping it. Change the single quote to the encoded version of '
>
>
message = @"This plan is not applicable for the Insured's Age and/or Sum Assured";
>
>and see if that works instead.
Thanks Paul,
that explains the logic behind the problem and using ' worked.