I want to get the image_url from the content.Actually i have done the following code to get the content:
$content=$query_val->post_content;
i'm getting following as o/p:
"content":"Lorem Ipsum-has been the industry's standard dummy text,Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,Lorem Ipsum has been the industry's standard dummy text ever since the 1500s..."
When I add the strip_tags() like :
$content=strip_tags($query_val->post_content);
It will remove all the tags, so that i could not get the image_url which is inside the tag.
Now I want to get the image url inside the content like:
"content":"Lorem Ipsum-has been the industry's standard dummy text,Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,Lorem Ipsum has been the industry's standard dummy text ever since the 1500s...image_url:"imageurl"