內容簡介
Dovi Pasted HTML Cleanup 外掛能有效改善 HTML 內容的整潔度,透過自動化清理功能,幫助網站去除不必要的標籤與屬性,特別適合從其他來源複製的內容。
【主要功能】
• 將 <b>/<i> 標籤替換為 <strong>/<em> 標籤
• 移除內聯樣式、類別、ID 和 aria-* 屬性
• 扁平化 <span> 標籤,同時保留內部文字
• 自動在儲存文章時進行清理
• 透過工具選單批次處理文章
• 提供即時手動 HTML 清理工具
外掛標籤
開發者團隊
原文外掛簡介
This plugin improves HTML content hygiene by:
Replacing / with semantic / tags
Removing inline styles, class, id, aria-*, and data-* attributes
Flattening tags while preserving inner text
Cleaning up Elementor’s text-editor widgets
Running cleanup automatically on post save (for selected post types)
Bulk-processing posts via the Tools menu
Providing a real-time manual HTML cleanup tool in the admin
Useful for websites that have been copy-pasting styled HTML from other sources (like Word or Google Docs), or importing messy content from page builders.
Usage
Enable or disable cleanup by post type via the Tools > HTML Cleanup settings.
Use the WYSIWYG cleaner to test and clean HTML manually.
Click “Start Cleanup” to process all matching posts in batches via AJAX.
