Title: Cleanup Text
Author: roggie
Published: <strong>8. Mai 2010</strong>
Last modified: 12. August 2010

---

Plugins durchsuchen

Dieses Plugin **ist nicht mit den jüngsten 3 Hauptversionen von WordPress** getestet
worden. Es wird möglicherweise nicht mehr gewartet oder unterstützt und kann Kompatibilitätsprobleme
haben, wenn es mit neueren Versionen von WordPress verwendet wird.

![](https://s.w.org/plugins/geopattern-icon/cleanup-text.svg)

# Cleanup Text

 Von [roggie](https://profiles.wordpress.org/roggie/)

[Herunterladen](https://downloads.wordpress.org/plugin/cleanup-text.zip)

 * [Details](https://de.wordpress.org/plugins/cleanup-text/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/cleanup-text/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/cleanup-text/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/cleanup-text/#developers)

 [Support](https://wordpress.org/support/plugin/cleanup-text/)

## Beschreibung

WordPress posts and pages can contain Smart quotes and other fancy characters. But
Smartquotes and other special characters don’t work properly if you send the contents
of a post by email. This plugin cleans up text so it can be emailed properly.

Instead of using this plugin you could use WordPress filters to reformat text, but
WordPress filters cannot be used with PHP functions like strip_tags. If you use 
a filter to remove Smart quotes you can’t also use strip_tags to remove HTML.

Also, WordPress filters don’t remove all the characters that could cause problems.
For example, double spaces are not removed properly by WordPress, and Europeans 
will have problems with the UK pound currency symbol.

This very simple plugin removes all sorts of special characters, including double
spaces and currency symbols that WordPress filters don’t manage.

It also has an option to remove HTML.

## Installation

1) Copy the file cleanup_text.php to your WordPress plugins directory.

2) Login to WordPress as an administrator, go to Plugins and Activate it.

3) Call the plugin anywhere in your theme or other PHP code.

E.g. replace „the_content()“ with „cleanup_text( the_content() )“

## FAQ

**How do I use the plugin?**
 Call the function cleanup_text() from within your 
theme or other plugin. Supply the text to be cleaned as the first argument. E.g.`
<?php $clean_text = cleanup_text( $text_to_clean ) ; ?>`

**How do I get the plugin to remove HTML?**
 Call the function with TRUE as the 
second argument. E.g. `<?php $clean_text = cleanup_text( $text_to_clean, TRUE) ;?
>`

**Can I use cleanup_text for web pages?**
 Yes, you could use cleanup_text to clean
text that will be displayed on a web page. You would probably use something like:
E.g. `<?php echo cleanup_text( get_the_content() ) ; ?>`

But the results will probably not be what you want because cleanup_text uses „\n“
for new lines, and web pages use `<br />` or some other HTML notation.

If you really want to do this let me know and I’ll update the plugin so it can be
used in this way.

## Rezensionen

Für dieses Plugin gibt es keine Rezensionen.

## Mitwirkende und Entwickler

„Cleanup Text“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin
mitgewirkt:

Mitwirkende

 *   [ roggie ](https://profiles.wordpress.org/roggie/)

[Übersetze „Cleanup Text“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/cleanup-text)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/cleanup-text/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/cleanup-text/) an
oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/cleanup-text/)
per [RSS](https://plugins.trac.wordpress.org/log/cleanup-text/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

For changelog please visit http://www.thehypervisor.com/cleanup-text/

## Meta

 *  Version **2.0.1**
 *  Zuletzt aktualisiert **vor 16 Jahren**
 *  Aktive Installationen **10+**
 *  WordPress-Version ** 1.0.0 oder höher **
 *  Getestet bis **3.0.0**
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/cleanup-text/)
 * Schlagwörter
 * [filter](https://de.wordpress.org/plugins/tags/filter/)[html](https://de.wordpress.org/plugins/tags/html/)
   [Smart Quotes](https://de.wordpress.org/plugins/tags/smart-quotes/)[special characters](https://de.wordpress.org/plugins/tags/special-characters/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/cleanup-text/advanced/)

## Bewertungen

Es wurden noch keine Rezensionen eingereicht.

[Your review](https://wordpress.org/support/plugin/cleanup-text/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/cleanup-text/reviews/)

## Mitwirkende

 *   [ roggie ](https://profiles.wordpress.org/roggie/)

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/cleanup-text/)

## Spenden

Möchtest du die Weiterentwicklung dieses Plugins unterstützen?

 [ Für dieses Plugin spenden ](http://www.rogerh.com/donate.html)