ios - How to read string between to html node -


i getting response json webservice , have 1 node "name".

{     "name": "<style>b\n {\n  font-family:'helvetica';\n  line-height: 200%;\n  text-align: justify;\n } \n </style><b>corn idlis</b><br/>" } 

i trying food name between corn idlis.

so 1 please suggest me how read or remove html tag node.

you can retrieve string

nsstring *htmlstr = responsedic[@"name"]; nsarray *temparray = [htmlstr componentsseparatedbystring:@"<b>"]; nsarray *temparray1 = [temparray[1] componentsseparatedbystring:@"</b>"]; nsstring *yourstring = [temparray1 firstobject]; 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -