iphone - Is it possible html tags in plist file? -


i downloads strings web in plist format. simple example:

..... <dict> <key>title</title> <string>title here</string> </dict> ..... 

some title comes html tags;some title has & char.

<b>title & title here</b> 

thats why plist format crashes.

it not possible convert records on server. because there running website.

i make plist file below code:

nsdata *plistdata=[request responsedata]; nspropertylistformat format; nsstring *error; nsmutablearray *plist; plist = [nspropertylistserialization propertylistfromdata:plistdata                                           mutabilityoption:nspropertylistimmutable                                                     format:&format errordescription:&error];  

how can solve problem?

you need xml encode string, & become & amp ;


Comments