WP Manifestindependent plugin directory
manifest / utilities / cc-text-cleaner

CC Text Cleaner

Lightweight WordPress plugin for cleaning and converting uploaded text files into UTF-8 plain text. 文本清理工具

★ 1stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/cclintw/cc-text-cleaner/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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-cleaner text domain
  • Nonce-protected upload form with server-side file extension checks

Installation

  1. Upload the plugin folder to /wp-content/plugins/
  2. Activate the plugin in WordPress admin
  3. Go to Tools > Text Cleaner
  4. 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