• 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: Converting strings to html safe
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting strings to html safe


  • Subject: Re: Converting strings to html safe
  • From: John Stiles <email@hidden>
  • Date: Sat, 12 Aug 2006 19:29:43 -0700

isn't valid HTML for ' ', is it? I think is for URL escaping, not HTML.
I think in HTML it's supposed to be something like &x20;



Craig Stanton wrote:
I should have added that stringByAddingPercentEscapesUsingEncoding: doesn't work because Ge doesn't turn things like back into a space but it does turn &amp; into &


On 13/08/2006, at 12:42 PM, Craig Stanton wrote:

Hello list,

I am trying to convert some strings to html versions for a specific renderer that doesn't like getting "&" or "<" part way through a sentence. What I need to do is turn things like "&" into "&amp;". Is there a ready made function for this? I've search the list and documentation in XCode but haven't found the right thing yet, possibly my search terms aren't correctly phrased. I'd rather use a pre-made function than making my own large Switch statement incase I miss out one case.

And no, I don't have control over the renderer, it's Google Earth :-)

Cheers,
    Craig
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Converting strings to html safe (From: Craig Stanton <email@hidden>)
 >Re: Converting strings to html safe (From: Craig Stanton <email@hidden>)

  • Prev by Date: Re: Re: redrawing an NSPopUpButtonCell, and ghost effect
  • Next by Date: Re: Converting strings to html safe
  • Previous by thread: Re: Converting strings to html safe
  • Next by thread: Re: Converting strings to html safe
  • Index(es):
    • Date
    • Thread