Title: Remove HTML From Content
Author: Adam Ainsworth
Published: <strong>June 4, 2015</strong>
Last modified: October 26, 2021

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/remove-html-from-content.svg)

# Remove HTML From Content

 By [Adam Ainsworth](https://profiles.wordpress.org/adamainsworth/)

[Download](https://downloads.wordpress.org/plugin/remove-html-from-content.1.0.1.zip)

 * [Details](https://twd.wordpress.org/plugins/remove-html-from-content/#description)
 * [Reviews](https://twd.wordpress.org/plugins/remove-html-from-content/#reviews)
 *  [Installation](https://twd.wordpress.org/plugins/remove-html-from-content/#installation)
 * [Development](https://twd.wordpress.org/plugins/remove-html-from-content/#developers)

 [Support](https://wordpress.org/support/plugin/remove-html-from-content/)

## Description

You may have some obscure reason for wanting the output that is sent by the_content()
and get_the_content() to be simple HTML, free of the more exotic tags and objects.
It may be for post aggregators or email notifications or some other edge case. This
is for you!

## Installation

 1. Upload the `remove-html-from-content` folder to the `/wp-content/plugins/` directory
 2. Navigate to wp-admin/plugins.php on your site (your WP plugin page)
 3. Alternatively, upload `remove-html-from-content.zip` via the upload plugin section
    at wp-admin/plugins.php
 4. Activate this plugin.

OR you can just install it with WordPress by going to Plugins >> Add New >> and 
typing Remove HTML From Content

## FAQ

### Will it do all content?

Just that which runs through the_content() and get_the_content() but you can add
your own filters with

    ```
    add_action( 'FILTER_NAME', [__CLASS__, 'do_filter'], 0 );
    ```

Or calling the conversion directly with

    ```
    $text = Remove_Html_From_Content::do_filter($html);
    ```

## Reviews

![](https://secure.gravatar.com/avatar/94ff17fd44de2ff980132a2396f5c93611e6ced53e41873b272581b509115fb9?
s=60&d=retro&r=g)

### 󠀁[Removes HTML from posts, including from post-by-email](https://wordpress.org/support/topic/removes-html-from-posts-including-from-post-by-email/)󠁿

 [websta](https://profiles.wordpress.org/websta/) September 3, 2016

I needed my site to post content provided by a government listserv (agendas for 
public meetings). I set an automatic forwarding filter in my email to my website
via WordPress’ post-by-email function, assisted by the Postie plugin. That worked
well but it had “unsubscribe” info at the bottom of the email — what if someone 
clicked the “unsubscribe” link? So I added the Text Obfuscator plugin to filter 
out the explanatory text, which was great, but it left the actual link since it 
didn’t filter out HTML. So that was a problem. But then, this plugin was recommended
to me, and it worked perfectly. Problem solved. Thank you, developer! Note that 
this removes all HTML from being presented publicly, which includes all posts, new
or old, including certain formatting, like bold and blockquotes. It doesn’t actually
remove the HTML from the post (i.e., you can view the HTML using the text edit window
for composing the post), so you can try and if it isn’t working for you, you can
deactivate it, and your posts will revert to their previous state. While it would
be nice if there were some filtering options, like Text Obfuscator has, or a way
to turn it off for particular posts, it does exactly what it promises. Recommended!

 [ Read all 1 review ](https://wordpress.org/support/plugin/remove-html-from-content/reviews/)

## Contributors & Developers

“Remove HTML From Content” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Adam Ainsworth ](https://profiles.wordpress.org/adamainsworth/)

[Translate “Remove HTML From Content” into your language.](https://translate.wordpress.org/projects/wp-plugins/remove-html-from-content)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/remove-html-from-content/),
check out the [SVN repository](https://plugins.svn.wordpress.org/remove-html-from-content/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/remove-html-from-content/)
by [RSS](https://plugins.trac.wordpress.org/log/remove-html-from-content/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * Minor updates after six years

#### 1.0.0

 * Initial release

## Meta

 *  Version **1.0.1**
 *  Last updated **4 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.0.1 or higher **
 *  Tested up to **5.8.13**
 *  Language
 * [English (US)](https://wordpress.org/plugins/remove-html-from-content/)
 * Tags
 * [clean](https://twd.wordpress.org/plugins/tags/clean/)[html](https://twd.wordpress.org/plugins/tags/html/)
   [strip](https://twd.wordpress.org/plugins/tags/strip/)[tags](https://twd.wordpress.org/plugins/tags/tags/)
 *  [Advanced View](https://twd.wordpress.org/plugins/remove-html-from-content/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/remove-html-from-content/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/remove-html-from-content/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/remove-html-from-content/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/remove-html-from-content/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/remove-html-from-content/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/remove-html-from-content/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/remove-html-from-content/reviews/)

## Contributors

 *   [ Adam Ainsworth ](https://profiles.wordpress.org/adamainsworth/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/remove-html-from-content/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://adamainsworth.co.uk/donate/)