跳到内容

HTML Code Comments

v1.1.1

ludovicscribe · 2016年9月15日 上架

This plugin allows to take control of the HTML code allowed in your comments.

正在使用
10+
评分
5.0 / 5
累计下载
2,143
最近更新
2016年9月24日
3 条评价需要 WordPress 1.5.2+已测试到 4.7.40

贡献者

截图

List of alled HTML tags and attributes
List of alled HTML tags and attributes
Allowed HTML tags and attribuutes edition forms
Allowed HTML tags and attribuutes edition forms
Advanced configuration (options)
Advanced configuration (options)

Allowed tags edition

WordPress allows only some HTML tags in comments to prevent XSS vulnerabilities. The not allowed tags are simply deleted when a
comment is posted. The allowed tags are stored in a global WordPress variable that you have to edit if you want add allowed tags.
With this plugin, you can simply edit this variable and add an HTML tag or an attribute to the allowed tags list. There is no file
to edit, you just have to go on the plugin configuration page and edit the allowed tags list. It’s easy and efficient !

HTML tags encoding

Sometimes, you may have to put HTML code in your comments to answer your visitor’s questions. In that case, you generally put
your HTML code between two tags : code and pre. This plugin automatically encode HTML tags which are between pre and code
tags. So WordPress will not delete your HTML code and your code will be visible on the web-page.

Force link’s target

When your visitors put links in comments, WordPress automatically add the attribute rel="nofollow. It’s really usefull for your
site’s SEO but you perhaps don’t want your visitors follow this links and they leave your site. With this plugin, you can choose
to force target attribute value to _blank in all links of your comments. So, the links will be opened in new window, your visitors
don’t leave your site and you are happy.

Contribute

As you can see, my English is not perfect. If you want to correct me, you are welcome !

You can contact me on my website or do a pull request on Github 😉

Links

The Github repository (if you want to contribute) : https://github.com/ludovicscribe/wordpress-html-code-comments

The plugin page on my website : https://ludovicscribe.fr/blog/wordpress-commentaires-html

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums