Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This class removing my numeric letters from the webservice records #72

Open
spraveenk91 opened this issue Apr 3, 2013 · 1 comment
Open

Comments

@spraveenk91
Copy link

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

@tipycalFlow
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants