CC Text Cleaner
Lightweight WordPress plugin for cleaning and converting uploaded text files into UTF-8 plain text. 文本清理工具
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/cclintw/cc-text-cleaner/archive/refs/heads/main.zipReadme
CC Text Cleaner
CC Text Cleaner is a lightweight WordPress plugin for cleaning uploaded text files and converting them into UTF-8 plain text.
It is especially useful for researchers, archivists, and digital humanities users who need to process old text files such as Big5, SJIS, GB2312, HTML, XML, CSV, or Markdown files.
Features
- Upload and clean text files directly in WordPress
- Convert text content to UTF-8
- Remove invalid or garbled characters
- Strip HTML, XML, CSS, and script tags
- Preserve line breaks while removing unwanted control characters
- Replace unsupported characters with the visible placeholder ■
- Download the cleaned result as a plain text file
- Includes shortcode support:
[cc_text_cleaner] - Translation ready with
cc-text-cleanertext domain - Nonce-protected upload form with server-side file extension checks
Installation
- Upload the plugin folder to
/wp-content/plugins/ - Activate the plugin in WordPress admin
- Go to
Tools > Text Cleaner - Or insert the shortcode
[cc_text_cleaner]into a page or post
Supported File Types
.txt.csv.html.htm.xhtml.xml.md
Notes
- Maximum file size: 5MB
- The shortcode can be used on public pages
- Files are processed temporarily and removed after download
- Uploaded files are processed locally and are not sent to third-party services
- The plugin is translation ready
Changelog
1.0.0
- Initial release