• 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
NSString and decoding HTML Entities
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSString and decoding HTML Entities


  • Subject: NSString and decoding HTML Entities
  • From: Stuart Malin <email@hidden>
  • Date: Sun, 5 Apr 2009 09:56:53 -1000

I need to convert strings that contain HTML entities (e.g., &#8217; or &#gt;). I can't seem to find an NSString method to do so (not that I sometimes don't easily miss the obvious). So, I created a category on NSString and made two trivial methods that take advantage of toll- free bridging between NSString and CFStringRef by using CFXMLCreateStringByEscapingEntities and CFXMLCreateStringByUnescapingEntities. Is there a better way?
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please 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: NSString and decoding HTML Entities
      • From: "Stephen J. Butler" <email@hidden>
    • Re: NSString and decoding HTML Entities
      • From: Jack Carbaugh <email@hidden>
    • Re: NSString and decoding HTML Entities
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: IB Plugin help
  • Next by Date: Re: NSString and decoding HTML Entities
  • Previous by thread: Re: PackageMaker Script
  • Next by thread: Re: NSString and decoding HTML Entities
  • Index(es):
    • Date
    • Thread