mercredi 21 décembre 2016

PHP Regular Expression, Replace html tag to

I have the following regular expression to replace an html img tag with

lorem ipsum <br> <i class="fa fa-camera" style="color:#5db2ff;font-size: 20px; padding: 5px; border: 2px dotted red;" rel="image" alt="1482328190.jpg" aria-hidden="true"></i> lorem ipsum

to

lorem ipsum <br> <img src="1482328190.jpg"> lorem ipsum

Aucun commentaire:

Enregistrer un commentaire