• 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: Convert HTML to plain text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert HTML to plain text


  • Subject: Re: Convert HTML to plain text
  • From: "David Brennan" <email@hidden>
  • Date: Wed, 18 Apr 2007 10:42:14 +0100

Hi Johan,

As far as I know, if I load it into an attributed string, all the
images will be downloaded which can take a while, as I just want the
text I am looking for a quicker way.

On 18/04/07, Johan Kool <email@hidden> wrote:
Hello Dave,

You can read html into an attributed string using –
initWithHTML:documentAttributes: and friends, and then obtain a
NSString from the attributed string with the - string method. Note
though that this probably doesn't always work perfectly.

Johan

---
   http://www.johankool.nl/




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Convert HTML to plain text
      • From: Johan Kool <email@hidden>
    • Re: Convert HTML to plain text
      • From: Johan Kool <email@hidden>
    • Re: Convert HTML to plain text
      • From: "I. Savant" <email@hidden>
References: 
 >Convert HTML to plain text (From: "David Brennan" <email@hidden>)
 >Re: Convert HTML to plain text (From: Johan Kool <email@hidden>)

  • Prev by Date: Re: Convert HTML to plain text
  • Next by Date: A bug with NSWindow's convertBaseToScreen: method ?
  • Previous by thread: Re: Convert HTML to plain text
  • Next by thread: Re: Convert HTML to plain text
  • Index(es):
    • Date
    • Thread