取出編輯器中的圖片


if (strpos($goods['content'],'< img src="') !== false){

   $goods['content'] = str_replace('< img src="','< img src="'.DOMAIN,$goods['content']);

}

//去除標籤和字符

   $goods['content'] = html_entity_decode((strip_tags($goods['content'])));

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章