Title: HTML Purified
Author: John Godley
Published: <strong>2007 年 8 月 17 日</strong>
Last modified: 2012 年 5 月 5 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# HTML Purified

 作者：[John Godley](https://profiles.wordpress.org/johnny5/)

[下载](https://downloads.wordpress.org/plugin/html-purified.0.8.zip)

 * [详情](https://cn.wordpress.org/plugins/html-purified/#description)
 * [评价](https://cn.wordpress.org/plugins/html-purified/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/html-purified/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/html-purified/#developers)

 [支持](https://wordpress.org/support/plugin/html-purified/)

## 描述

HTML Purified replaces the default WordPress comments filters with HTML Purifier,
a super HTML filtering
 library.

> HTML Purifier is a standards-compliant HTML filter library written in PHP. HTML
> Purifier will
>  not only remove all malicious code (better known as XSS) with a
> thoroughly audited, secure yet permissive whitelist, it will also make sure your
> documents are standards compliant, something only achievable with a comprehensive
> knowledge of W3C’s specifications.

An additional feature of HTML Purifier is that it will produce valid well-formed
XHTML code, something
 which KSES does not do.

Features:

 * Configurable KSES or HTML Purifier
 * Configurable list of HTML elements and attributes for both KSES and HTML purifier
 * Additionally process comments with HTML Tidy
 * URL blacklist
 * Fully localized (and awaiting translations)
 * Automatically escape PHP or anything inside backticks

HTML Purifier is available in:

 * English
 * Spanish, thanks to José Cuesta
 * Belorussian, thanks to Marcis Gasuns
 * Russian, thanks to Ilyuha
 * Uzbekistan, thanks to Alexandra Bolshova
 * Dutch, thanks to Pieter
 * German, thanks to Andreas Beraz
 * Polish, thanks to Kasia Ciszewski & Dawid Śpiechowicz
 * Romanian, thanks to Alina @ InboxTranslations.com
 * Lithuanian, thanks to Nata Strazda
 * Ukranian, thanks to Iflexion Design

### Documentation

Full documentation can be found on the [HTML Purified](http://urbangiraffe.com/plugins/html-purified/)
page.

## 屏幕截图

 * [[
 * Main options page allowing specific HTML tags
 * [[
 * Specific configuration options for HTML Purifier

## 安装

The plugin is simple to install:

 1. Download `html-purified.zip`
 2. Unzip
 3. Upload html-purified directory to your `/wp-content/plugins` directory
 4. Go to the plugin management page and enable the plugin
 5. Configure the options from the `Options/HTML Purified` page

You can find full details of installing a plugin on the [plugin installation page](http://urbangiraffe.com/articles/how-to-install-a-wordpress-plugin/).

## 常见问题

  Why would I want to replace the default WordPress filter?

There is nothing fundamentally wrong with the way WordPress filters comments, and
in fact there has been no security alert related to this. However, this doesn’t 
detract from the desire to make things better, and the fact that HTML Purifier is
much more thorough and exhaustive.

  Does this plugin also protect posts?

Not currently, no, but it is planned for a future version

## 评价

此插件暂无评价。

## 贡献者及开发者

「HTML Purified」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ John Godley ](https://profiles.wordpress.org/johnny5/)

[帮助将「HTML Purified」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/html-purified)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/html-purified/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/html-purified/)，或通过[RSS](https://plugins.trac.wordpress.org/log/html-purified/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/html-purified/)。

## 更新日志

#### 0.2

 * Initial released version

#### 0.2.1

 * Change cache directory
 * Allow no tag
 * Update HTML purifier to 2.0.1

#### 0.2.2

 * Update HTML purifier to 2.1.1

#### 0.2.4

 * Fix cache directory write error

#### 0.2.5

 * Add Spanish localization

#### 0.2.6

 * Add auto-escape PHP option
 * Update to HTML purifier 2.1.2

#### 0.2.7

 * Add option for bbcode-style tags
 * Update to HTML Purifier 2.1.3

#### 0.2.8

 * Now works in bbPress!

#### 0.2.9

 * Update plugin library

#### 0.3.0

 * HTML Purifier PHP4 2.1.5, PHP5 3.1.1 – WP 2.5.1

#### 0.3.1

 * WP 2.6

#### 0.3.2

 * Update base library

#### 0.3.3

 * bbPress working again
 * Clean up code

#### 0.3.4

 * WP 2.8
 * Support for syntaxhighlighter
 * Fixes to backticks

#### 0.3.5

 * Add Uzbekistan
 * Add Russian

#### 0.4

 * PHP5 only
 * Update to HTML Purifier 4.2.0
 * Add German
 * Add Dutch

#### 0.5

 * Add Polish translation, thanks to Kasia Ciszewski & Dawid Śpiechowicz

#### 0.6

 * Add Lithuanian
 * Add Ukranian

#### 0.7

 * Code cleanup

## 额外信息

 *  版本 **0.7**
 *  最后更新：**14 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 2.9 或更高版本 **
 *  已测试的最高版本为 **3.3.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/html-purified/)
 * 标签
 * [comments](https://cn.wordpress.org/plugins/tags/comments/)[security](https://cn.wordpress.org/plugins/tags/security/)
   [spam](https://cn.wordpress.org/plugins/tags/spam/)[xhtml](https://cn.wordpress.org/plugins/tags/xhtml/)
   [xss](https://cn.wordpress.org/plugins/tags/xss/)
 *  [高级视图](https://cn.wordpress.org/plugins/html-purified/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/html-purified/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/html-purified/reviews/)

## 贡献者

 *   [ John Godley ](https://profiles.wordpress.org/johnny5/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/html-purified/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://urbangiraffe.com/about/support/)