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

---

Recherche d’extensions

Cette extension **n’a pas été testée avec plus de trois mises à jour majeures de
WordPress**. Elle peut ne plus être maintenue ou supportée et peut avoir des problèmes
de compatibilité lorsqu’elle est utilisée avec des versions de WordPress plus récentes.

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

# Remove HTML From Content

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

[Télécharger](https://downloads.wordpress.org/plugin/remove-html-from-content.1.0.1.zip)

 * [Détails](https://fr.wordpress.org/plugins/remove-html-from-content/#description)
 * [Avis](https://fr.wordpress.org/plugins/remove-html-from-content/#reviews)
 *  [Installation](https://fr.wordpress.org/plugins/remove-html-from-content/#installation)
 * [Développement](https://fr.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);
    ```

## Avis

![](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/) 3 septembre 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!

 [ Lire l’avis ](https://wordpress.org/support/plugin/remove-html-from-content/reviews/)

## Contributeurs/contributrices & développeurs/développeuses

« Remove HTML From Content » est un logiciel libre. Les personnes suivantes ont 
contribué à cette extension.

Contributeurs

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

[Traduisez « Remove HTML From Content » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/remove-html-from-content)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/remove-html-from-content/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/remove-html-from-content/),
ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/remove-html-from-content/)
par [RSS](https://plugins.trac.wordpress.org/log/remove-html-from-content/?limit=100&mode=stop_on_copy&format=rss).

## Journal des modifications

#### 1.0.1

 * Minor updates after six years

#### 1.0.0

 * Initial release

## Méta

 *  Version **1.0.1**
 *  Dernière mise à jour **il y a 5 ans**
 *  Installations actives **10+**
 *  Version de WordPress ** 3.0.1 ou plus **
 *  Testé jusqu’à **5.8.13**
 *  Langue
 * [English (US)](https://wordpress.org/plugins/remove-html-from-content/)
 * Étiquettes
 * [clean](https://fr.wordpress.org/plugins/tags/clean/)[html](https://fr.wordpress.org/plugins/tags/html/)
   [strip](https://fr.wordpress.org/plugins/tags/strip/)[tags](https://fr.wordpress.org/plugins/tags/tags/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/remove-html-from-content/advanced/)

## Évaluations

 5 sur 5 étoiles.

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

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

[Voir tous les avis](https://wordpress.org/support/plugin/remove-html-from-content/reviews/)

## Contributeurs

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

## Support

Quelque chose à dire ? Besoin d’aide ?

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

## Faire un don

Souhaitez-vous soutenir l’avancement de cette extension ?

 [ Faire un don à cette extension ](https://adamainsworth.co.uk/donate/)