0

i'm getting the json data,i need only the image link but i'm getting tag also.

jsonObject.getString(SampadaRestApiContract.JSON_TAG_BOOK_IMAGE) Log.d("IMAGE LINK","LINK="+articleItem.getUriImagesSDcard());

the output i'm getting is : <img src="http://sampada.net/files/IMG_5789.JPG" width="1944" height="2592" alt="" />

2

1 Answer 1

2

This is no more a JSON issue, as you have now a string with HTML content. See this answer for the regex : Regular Expression to extract src attribute from img tag

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.