MWFeedParser icon indicating copy to clipboard operation
MWFeedParser copied to clipboard

This class removing my numeric letters from the webservice records

Open spraveenk91 opened this issue 11 years ago • 1 comments

Hello, i'm using your classes to remove my html tags from an NSString. Its working fine. But, its removing my letter 2 particularly alone. I don't know why its happend? Please find my records below

Parsed

ออกอากาศวันที่ 2 เมษายน 2556

Raw

\u0e2d\u0e2d\u0e01\u0e2d\u0e32\u0e01\u0e32\u0e28\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48 2 \u0e40\u0e21\u0e29\u0e32\u0e22\u0e19 2556

&

My String

\r\n\tCheeze FM 107.4 Today's hot music คลื่นวิทยุเพลงฮิตในจังสระบุรี คลื่นนี้มีแต่เพลงฮิตติดCheezeeee\r\n

When i try to replace this using stringByConvertingHTMLToPlainText like below

NSString *shortD = [[[webServiceRecords objectAtIndex:indexPath.row] objectForKey:@"shortDesc"] stringByConvertingHTMLToPlainText];

Result - "Cheeze FM 07.4 Today's hot music คลื่นวิทยุเพลงฮิตในจังสระบุรี คลื่นนี้มีแต่เพลงฮิตติดCheezeeee" // 1 is missing

Its removing some numeric letters always. What may be the reason? And, how do i fix this?

My files - https://dl.dropboxusercontent.com/u/69670844/Nsstring%2BHTML.zip

spraveenk91 avatar Apr 03 '13 05:04 spraveenk91

@mwaterfall I can confirm this issue. @spraveenk You can avoid this problem by using stringByDecodingHTMLEntities instead of stringByConvertingHTMLToPlainText?

tipycalFlow avatar Oct 29 '13 07:10 tipycalFlow