Title: Editing html code
Last modified: August 18, 2016

---

# Editing html code

 *  [ledatechie](https://wordpress.org/support/users/ledatechie/)
 * (@ledatechie)
 * [19 years ago](https://wordpress.org/support/topic/editing-html-code/)
 * What is the easiest way to edit the html code for a bunch of WP posts? I would
   like to remove the “rel=lightbox[pics33]” type code from several dozen blog entries.
 * Is there a way I can access the raw html so I can use a search tool and edit 
   this information?
 * Is this a good idea? Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Les Bessant](https://wordpress.org/support/users/lesbessant/)
 * (@lesbessant)
 * [19 years ago](https://wordpress.org/support/topic/editing-html-code/#post-576634)
 * The content of your posts lives in the database, you you can’t actually edit 
   the generated HTML.
 * You can try the [Search and Replace](http://thedeadone.net/software/search-and-replace-wordpress-plugin/)
   plugin, which will let you make changes to the database.
 * Make sure you have a good backup first, and handle with care – there is no “undo”
   if you make a mistake with your edits.
 * And make sure you have a backup of your database first (yes I know I said that
   twice!)
 *  Thread Starter [ledatechie](https://wordpress.org/support/users/ledatechie/)
 * (@ledatechie)
 * [19 years ago](https://wordpress.org/support/topic/editing-html-code/#post-576856)
 * Thanks I’ll check out the plugin.
 * I wonder if you could export the SQL from the proper MySQL table, then run a 
   search and replace operation on the data, then upload it back to the database?
 * I wouldn’t know where to start, and this would be for the future. Seems this 
   would be safer as you could verify your changes prior to uploading the changed
   table data back.
 *  Thread Starter [ledatechie](https://wordpress.org/support/users/ledatechie/)
 * (@ledatechie)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/editing-html-code/#post-576899)
 * I looked at the plugin, and, well, I’m not sure I trust it.
 * I had success using an approach that wasn’t suggested here. I exported the database
   to an SQL file, then ran a search & replace utility to replace the code. I then
   imported the SQL back into the database after dropping the MySQL tables.
 * The nice thing was that I could see the proposed changes to the SQL prior to 
   committing. This is a feature of the utility I used (Funduc Search & Replace).
 *  [Jonathan Landrum](https://wordpress.org/support/users/jonlandrum/)
 * (@jonlandrum)
 * [18 years, 12 months ago](https://wordpress.org/support/topic/editing-html-code/#post-576900)
 * That’s exactly what I was going to suggest.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Editing html code’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [edit](https://wordpress.org/support/topic-tag/edit/)
 * [html](https://wordpress.org/support/topic-tag/html/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [Jonathan Landrum](https://wordpress.org/support/users/jonlandrum/)
 * Last activity: [18 years, 12 months ago](https://wordpress.org/support/topic/editing-html-code/#post-576900)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
