• 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
XML-/HTML-safe formatted output from NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XML-/HTML-safe formatted output from NSString


  • Subject: XML-/HTML-safe formatted output from NSString
  • From: "Terence Goggin" <email@hidden>
  • Date: Wed, 30 Oct 2002 00:07:51 +0000

Hi all,

I have some data that I'm writing to disk via an NSString... However, the resulting data gets spit out as XML or HTML formatted data which means that I need a way to catch and replace any XML/HTML reserved characters such as <, <, &, etc.

Does anyone have any thoughts on easiest ways to accomplish this? I could go through the NSString one character at a time and just replace as needed, but I was hoping there was already code or methods to do this available somewhere.

Thanks in advance,

Terence

_________________________________________________________________
Unlimited Internet access for only $21.95/month. Try MSN! http://resourcecenter.msn.com/access/plans/2monthsfree.asp
_______________________________________________
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: XML-/HTML-safe formatted output from NSString
      • From: Chris Hanson <email@hidden>
    • Re: XML-/HTML-safe formatted output from NSString
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Custom Controls and Controllers: Some funny stuff going on here, any ideas?
  • Next by Date: DO Connections
  • Previous by thread: Re: Custom Controls and Controllers: Some funny stuff going on here, any ideas?
  • Next by thread: Re: XML-/HTML-safe formatted output from NSString
  • Index(es):
    • Date
    • Thread