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
Post a Comment