Linux 软件免费装

Cleanup Text

开发者 roggie
更新时间 2010年8月12日 20:35
捐献地址: 去捐款
PHP版本: 1.0.0 及以上
WordPress版本: 3.0.0

标签

Filter HTML Smart Quotes Special Characters

下载

2.0.0 2.1.0 1.0.1

详情介绍:

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() )"

更新日志:

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