Title: Remove HTML From Content
Author: Adam Ainsworth
Published: <strong>2015 年 6 月 4 日</strong>
Last modified: 2021 年 10 月 26 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/remove-html-from-content.svg)

# Remove HTML From Content

 由 [Adam Ainsworth](https://profiles.wordpress.org/adamainsworth/) 開發

[下載](https://downloads.wordpress.org/plugin/remove-html-from-content.1.0.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/remove-html-from-content/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/remove-html-from-content/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/remove-html-from-content/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/remove-html-from-content/#developers)

 [技術支援](https://wordpress.org/support/plugin/remove-html-from-content/)

## 外掛說明

You may have some obscure reason for wanting the output that is sent by the_content()
and get_the_content() to be simple HTML, free of the more exotic tags and objects.
It may be for post aggregators or email notifications or some other edge case. This
is for you!

## 安裝方式

 1. Upload the `remove-html-from-content` folder to the `/wp-content/plugins/` directory
 2. Navigate to wp-admin/plugins.php on your site (your WP plugin page)
 3. Alternatively, upload `remove-html-from-content.zip` via the upload plugin section
    at wp-admin/plugins.php
 4. Activate this plugin.

OR you can just install it with WordPress by going to Plugins >> Add New >> and 
typing Remove HTML From Content

## 常見問題集

### Will it do all content?

Just that which runs through the_content() and get_the_content() but you can add
your own filters with

    ```
    add_action( 'FILTER_NAME', [__CLASS__, 'do_filter'], 0 );
    ```

Or calling the conversion directly with

    ```
    $text = Remove_Html_From_Content::do_filter($html);
    ```

## 使用者評論

![](https://secure.gravatar.com/avatar/94ff17fd44de2ff980132a2396f5c93611e6ced53e41873b272581b509115fb9?
s=60&d=retro&r=g)

### 󠀁[Removes HTML from posts, including from post-by-email](https://wordpress.org/support/topic/removes-html-from-posts-including-from-post-by-email/)󠁿

 [websta](https://profiles.wordpress.org/websta/) 2016 年 9 月 3 日

I needed my site to post content provided by a government listserv (agendas for 
public meetings). I set an automatic forwarding filter in my email to my website
via WordPress' post-by-email function, assisted by the Postie plugin. That worked
well but it had "unsubscribe" info at the bottom of the email — what if someone 
clicked the "unsubscribe" link? So I added the Text Obfuscator plugin to filter 
out the explanatory text, which was great, but it left the actual link since it 
didn't filter out HTML. So that was a problem. But then, this plugin was recommended
to me, and it worked perfectly. Problem solved. Thank you, developer! Note that 
this removes all HTML from being presented publicly, which includes all posts, new
or old, including certain formatting, like bold and blockquotes. It doesn't actually
remove the HTML from the post (i.e., you can view the HTML using the text edit window
for composing the post), so you can try and if it isn't working for you, you can
deactivate it, and your posts will revert to their previous state. While it would
be nice if there were some filtering options, like Text Obfuscator has, or a way
to turn it off for particular posts, it does exactly what it promises. Recommended!

 [ 閱讀全部 1 則使用者評論 ](https://wordpress.org/support/plugin/remove-html-from-content/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Remove HTML From Content〉的開發相關工作。

參與者

 *   [ Adam Ainsworth ](https://profiles.wordpress.org/adamainsworth/)

[將〈Remove HTML From Content〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/remove-html-from-content)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/remove-html-from-content/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/remove-html-from-content/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/remove-html-from-content/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/remove-html-from-content/)。

## 變更記錄

#### 1.0.1

 * Minor updates after six years

#### 1.0.0

 * Initial release

## 中繼資料

 *  版本 **1.0.1**
 *  最後更新 **5 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.0.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.8.17**
 *  語言
 * [English (US)](https://wordpress.org/plugins/remove-html-from-content/)
 * 標籤:
 * [clean](https://tw.wordpress.org/plugins/tags/clean/)[html](https://tw.wordpress.org/plugins/tags/html/)
   [strip](https://tw.wordpress.org/plugins/tags/strip/)[tags](https://tw.wordpress.org/plugins/tags/tags/)
 *  [進階檢視](https://tw.wordpress.org/plugins/remove-html-from-content/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/remove-html-from-content/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/remove-html-from-content/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/remove-html-from-content/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/remove-html-from-content/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/remove-html-from-content/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/remove-html-from-content/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/remove-html-from-content/reviews/)

## 參與者

 *   [ Adam Ainsworth ](https://profiles.wordpress.org/adamainsworth/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/remove-html-from-content/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://adamainsworth.co.uk/donate/)