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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.