我想得到image_url 从内容。实际上,我已经完成了以下代码来获取内容:
$content=$query_val->post_content;
我收到以下订单:"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..."
当我添加strip_tags() 例如:
$content=strip_tags($query_val->post_content);
它将删除所有标记,因此我无法获取位于 标签现在我想在内容中获取图像url,如:
"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"
<小时/>