Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS - load html tag on xml after Parsing
    primarykey
    data
    text
    <p>today I've another problem with my code on app. I use NSXMLParser to parse a xml file from server (not localhost). It show correctly on app but still have problem with html tag. For example, <code>&lt;a href=""&gt;&lt;/a&gt;</code>; <code>&lt;p&gt;&lt;/p&gt;</code>; <code>&lt;br/&gt;</code>; <code>&lt;b&gt;&lt;/b&gt;</code> is not load correctly, it show as same as that. Actually, I want to show <a href="http://blog.andikurnia.com" rel="nofollow">blog.andikurnia.com</a> (example), but the result on my app is <code>&lt;a href="http://blog.andikurnia.com"&gt;blog.andikurnia.com&lt;/a&gt;</code>. :(</p> <p>Is there any solution for me...? Oh yeah, I was using <strong>NSString+HTML</strong> and <strong>NSString+XMLEntities</strong> on my project, but it show nothing.</p> <p>Here is my code.</p> <pre><code> for (int i = 1; i &lt;= 50; i++) { MessageModel* messageModel1 = [[MessageModel alloc] init]; messageModel1.messageID= i; messageModel1.userName = [item objectForKey:@"title"]; messageModel1.userImage = [item objectForKey:@"image"]; messageModel1.createdAt = [[item objectForKey:@"pubDate"] stringByConvertingHTMLToPlainText]; messageModel1.content = [[item objectForKey:@"content:encoded"]stringByDecodingXMLEntities]; [messageArrayCollection addObject:messageModel1]; [messageModel1 release]; } </code></pre> <p><strong>stringByConvertingHTMLToPlainText</strong> is working well, <br/>but it didn't work on <strong>stringByDecodingXMLEntities</strong>.</p> <p>Thank you for your response..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload