Re: Stripping HTML tags
Re: Stripping HTML tags
- Subject: Re: Stripping HTML tags
- From: sinclair44 <email@hidden>
- Date: Thu, 13 Mar 2003 20:48:12 -0500
On 3/12/03 10:16 PM, "Sherm Pendley" <email@hidden> wrote:
>
You might try creating an NSAttributedString with the HTML
>
(-initWithHTML:documentAttributes:), and then use the string: method to
>
get a plain string out of it.
Worked like a charm. Thanks!
*****
On 3/13/03 3:12 PM, "Hasan Diwan" <email@hidden> wrote:
>
OmniExpat is a wrapper around the expat library. If you're dealing with
>
well-formed HTML, it will do what you want.
Heh, it's *not* well-formatted HTML; I'm writing an AIM bot. AIM sends some
very simple HTML tags, which inhibited the correcting parsing of the strings
for the bot.
--
-- sinclair44
[self becomeWorldDictator];
- (void)becomeWorldDictator
{
[[GeorgeBush principalClass] assassinate:[world currentLeaders]];
[[world citizens] terrorize];
[world setCurrentLeaders:[NSArray arrayWithObject:self]];
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.