• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stripping HTML tags
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Stripping HTML tags
      • From: Jeffrey Mattox <email@hidden>
    • Building my app for 10.1...
      • From: Ben Mackin <email@hidden>
References: 
 >Re: Stripping HTML tags (From: Sherm Pendley <email@hidden>)

  • Prev by Date: State of Cocoa adoption
  • Next by Date: Re: UI responsiveness
  • Previous by thread: Re: Stripping HTML tags
  • Next by thread: Building my app for 10.1...
  • Index(es):
    • Date
    • Thread