Question

When I parse the below xml:

... <opp_brief> N & S nishu </opp_brief>...

using the following line code:

TBXMLElement *element10 = [TBXML childElementNamed:@"opp_brief" parentElement:element8];

if (element10 != nil) { NSLog(@"TBXMLLLLL::::: %@",[TBXML textForElement:element10]); }

output of NSLog is: TBXMLLLLL::::: N &amp; S nishu

I dont know from where "amp;" is coming with the &...

Can any one help....

Was it helpful?

Solution

TBXML apparently doesn't offer any option to resolve that. Check out this question on SO : HTML character decoding in Objective-C / Cocoa Touch.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top