/** * 文本内容图片获取 * @return \think\response\Json */ public function imgs_content() { $content=Request::post("content"); preg_match_all("/<img[^<>]*src=[\"]([^\"]+)[\"][^<>]*>/im",$content,$matches); foreach ($matches[1] as $z=>$img){ $article_one[$z]=$img; } return $this->jsuccess('筛选成功!',$article_one); }
推荐