<?php $text='<p>Quis vel accusantium libero. Suscipit officiis culpa<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7">libero quia ad.</p>'; $result=preg_replace('/(?<=data:image.{50}).*"/', '..."', $text); echo $result;
You have javascript disabled. You will not be able to edit any code.