Passing HTML using JSON -


I am passing data using JSON for iPhone and iPad One field of data is HTML.

The problem is encoding.

What do I get back here:

  & gt; "Gadget HTML": " Hello > from Catworld 
& lt; img alt = \" \ "& gt; & lt; br / & gt; Src = \ "http://www.iconarchive.com/icons/flxten/finnily/128/dog-syon \ "& Gt; / & gt;",

This is killing me \ N does not help.

Any good way to do this?

Any JSON for HTML cleanup operations? Encoding?

(should be something better than manually removing)

thanks

This is HTML, it's just JSON encoded, use the standard JSON parser and the string you retrieve will handle the escape characters for you ...

... or what Are you trying to write your own JSON parser? (There is probably no good idea, but if you really want to change the wheel again, then imagine (and the ECMA-262 specification will probably help you to grammar)).


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -