跳到内容

Cleanup Text

v2.0.1

roggie · 2010年5月8日 上架

Function to remove smart quotes, HTML and other special characters from text. Call the function with text as argument, function returns clean text.

正在使用
10+
评分
暂无
累计下载
3,198
最近更新
2010年8月12日
需要 WordPress 1.0.0+已测试到 3.0.0

贡献者

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums