Title: Using hooks? to modify HTML before output
Last modified: August 19, 2016

---

# Using hooks? to modify HTML before output

 *  [idealists](https://wordpress.org/support/users/idealists/)
 * (@idealists)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/using-hooks-to-modify-html-before-output/)
 * Hi
 * I am wanting to strip all HTML comments (that may be added by plugins etc) before
   the HTML is outputted to the browser.
 * Is there anyway of doing this with hooks or whatever?
 * I don’t want to go through all the plugins and modify each ones code individually,
   as when a plugin gets updated all this hard work will get undone – plus I have
   lots of site (so even more work).
 * I’m hoping there is a way to achieve this with a hook or something 🙂
 * Thanks, hope it makes sense.

The topic ‘Using hooks? to modify HTML before output’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [idealists](https://wordpress.org/support/users/idealists/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/using-hooks-to-modify-html-before-output/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
