• 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: &xxx; thingies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: &xxx; thingies


  • Subject: Re: &xxx; thingies
  • From: Scott Anguish <email@hidden>
  • Date: Sat, 17 Nov 2001 06:40:18 -0500

Total lazy man hack here.. (there are better ways to do this.. but they'd require a big table of the values to map to)

load the NSString into an NSText instance as HTML, and then grab the string from the text.

Like I said.. TOTAL hack.. (not sure, but it might ruin any whitespace/returns)

I'd love to see an NSEncoding mode that handled HTML so you could move between the escaped and unescaped stuff easily...

On Saturday, November 17, 2001, at 01:50 AM, Angela Brett wrote:

Hi,

I know I could do this myself but I'm sure it's already been done. What should I use to go through an NSString and turn the &amp; etc used in HTML into the characters they represent? It looks as if the Omniweb framework can do it, but I haven't figured out how yet. I don't really want to add all the Omni frameworks to my project just for that, so if someone could tell me about a simple way of doing it I'd be most grateful.


  • Follow-Ups:
    • Re: &xxx; thingies
      • From: Jeff LaMarche <email@hidden>
References: 
 >&xxx; thingies (From: Angela Brett <email@hidden>)

  • Prev by Date: Re: Standard OS X Compression format
  • Next by Date: Re: Standard OS X Compression format
  • Previous by thread: &xxx; thingies
  • Next by thread: Re: &xxx; thingies
  • Index(es):
    • Date
    • Thread