• 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: Scott Anguish <email@hidden>
  • Date: Fri, 14 Mar 2003 00:57:47 -0500

On Thursday, March 13, 2003, at 10:21 PM, Jeffrey Mattox wrote:

At 8:48 PM -0500 3/13/03, sinclair44 wrote:
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!

I sure would like to see more about this (I don't understand the attributes). Could you post the actual snippet that did the trick?
\

NSAttributedStrings can load HTML. AttibutedStrings basically have attributes (font, link, paragraph, lots of others, plus you can add your own) assigned to ranges of text.
_______________________________________________
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.
References: 
 >Re: Stripping HTML tags (From: Jeffrey Mattox <email@hidden>)

  • Prev by Date: Re: Checking the type...
  • Next by Date: Re: Cocoa and standard Java
  • Previous by thread: Re: Stripping HTML tags
  • Next by thread: Re: Stripping HTML tags
  • Index(es):
    • Date
    • Thread