Answers.Body: <p>I <em>think</em> you should be able to do this with the <a href="https://plugins.craftcms.com/retcon" rel="nofollow noreferrer">Retcon plugin</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-12T12:26:45.360Z
Answers.Text: Thank you! Will take a look.
Answers.UserDisplayName: Emma Swann
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-12T12:11:00.180Z
Answers.LastActivityDate: 2022-01-12T12:11:00.180Z
Answers.UserDisplayName: James Smith
Body: <p>I have thousands of imported entries which have HTML image embeds to files which no longer exist. Is there a way to use the replace function in the tag to say replace <code>&lt;img src=&quot;[variable different every time]&quot;&gt;</code> with nothing?</p>
  <p>Would prefer if possible not to have to edit each entry, but not have broken image tags on the pages.</p>
  
Tags: <templating><replace>
Title: Replace HTML string in body tag?
ThreadText: # Replace HTML string in body tag?
  
  (Asked by: username_0 on 2022-01-12)
  
  I have thousands of imported entries which have HTML image embeds to files which no longer exist. Is there a way to use the replace function in the tag to say replace `<img src="[variable different every time]">` with nothing?
  
  Would prefer if possible not to have to edit each entry, but not have broken image tags on the pages.
  
  **Tags:** templating, replace
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-01-12. Score: 1
  
  I *think* you should be able to do this with the [Retcon plugin](https://plugins.craftcms.com/retcon)
  
  > **Comments:**
  > **username_0**: Thank you! Will take a look.  
  
  ---
  
  