2
텍스트가 포함 된 일부 이미지 링크가 img 태그 및 기타 링크를 태그로 대체하려고합니다.Preg_replace URL과 이미지를 PHP로
$row['message'] = preg_replace('/(http:\\/\\/.+(png|jpeg|jpg|gif|bmp))/Ui', '<img height="'.self::getConfig('image_height').'" src="$1" />', $row['message'], -1, $countImages);
방법 $row['message']
의 태그에 img 태그를 제외하고 모든 링크를 대체 할 :
는 이미 그랬어?
고맙습니다.