Jump to content

[SOLVED] replacing everything between two strings


calabiyau

Recommended Posts

<img style="width: 91px; height: 76px" src="images/star.gif" border="1" alt="star" title="star" hspace="1" vspace="1" width="91" height="76" align="left" />

 

Tricky question for the above line of html.  I have a content editor for a blog that outputs this piece of code for inserting an image.  However I am trying to have a rich text format export option to export the blog entries and want to replace all the above with a simple tag like <missing image>.  So I am looking for something that will take everything between <img   and /> and replace it, without affecting any other occurences of things like width, height, etc that occur elsewhere on the page outside  the image tage.  Anybody have any idea of how this could be done?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.