Title: Cleanup Text
Author: roggie
Published: <strong>Май 8, 2010-ж.</strong>
Last modified: Август 12, 2010-ж.

---

Плагиндерди издөө

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/cleanup-text.svg)

# Cleanup Text

 Автору [roggie](https://profiles.wordpress.org/roggie/)

[Жүктөө](https://downloads.wordpress.org/plugin/cleanup-text.zip)

 * [Кенен маалымат](https://ky.wordpress.org/plugins/cleanup-text/#description)
 * [Сын-пикирлер](https://ky.wordpress.org/plugins/cleanup-text/#reviews)
 *  [Орнотуу](https://ky.wordpress.org/plugins/cleanup-text/#installation)
 * [Development](https://ky.wordpress.org/plugins/cleanup-text/#developers)

 [Колдоо](https://wordpress.org/support/plugin/cleanup-text/)

## Сүрөттөө

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.

## Орнотуу

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.KG

**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.

## Сын-пикирлер

There are no reviews for this plugin.

## Contributors & Developers

“Cleanup Text” is open source software. The following people have contributed to
this plugin.

Мүчөлөрү

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

[Translate “Cleanup Text” into your language.](https://translate.wordpress.org/projects/wp-plugins/cleanup-text)

### Interested in development?

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

## Өзгөртүүлөр

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

## Мета

 *  Нуска **2.0.1**
 *  Акыркы жаңыртуу **16 жыл мурун**
 *  Активдүү орнотуулар **10+**
 *  WordPress нускасы ** 1.0.0 же андан жогору **
 *  Tested up to **3.0.0**
 *  Тил
 * [English (US)](https://wordpress.org/plugins/cleanup-text/)
 * Тег:
 * [filter](https://ky.wordpress.org/plugins/tags/filter/)[html](https://ky.wordpress.org/plugins/tags/html/)
   [Smart Quotes](https://ky.wordpress.org/plugins/tags/smart-quotes/)[special characters](https://ky.wordpress.org/plugins/tags/special-characters/)
 *  [Advanced View](https://ky.wordpress.org/plugins/cleanup-text/advanced/)

## Рейтинг

Азырынча эч кандай сын-пикир жок.

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

[See all reviews](https://wordpress.org/support/plugin/cleanup-text/reviews/)

## Мүчөлөрү

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

## Колдоо

Комментарийлер барбы? Жардам керекпи?

 [Колдоо форумун көрүү](https://wordpress.org/support/plugin/cleanup-text/)

## Кайрымдуулук

Would you like to support the advancement of this plugin?

 [ Кайрымдуулук кылуу ](http://www.rogerh.com/donate.html)