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="" />

Uday
  • 1,619
  • 3
  • 23
  • 48

1 Answers1

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

Community
  • 1
  • 1
lukasz
  • 3,121
  • 1
  • 21
  • 20