PHP 处理富文本编辑器中的图片

$line=htmlspecialchars_decode(I("post.line"));

$line2=str_replace('<img src="/Public/upload/','<img src="'.C("UPLOAD").'/Public/upload/',$line);

猜你喜欢

转载自blog.csdn.net/qq_26516097/article/details/88761422