Title: HTML Code Comments
Author: ludovicscribe
Published: <strong>15. Septembra 2016.</strong>
Last modified: 23. Septembra 2016.

---

Pretražite dodatke

Ovaj dodatak **nije testiran s najnovija 3 glavna izdanja WordPress-a**. Možda se
više ne održava ili se ne podržava i može imati problema sa kompatibilnošću kada
se koristi sa novijim verzijama WordPress-a.

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

# HTML Code Comments

 Od [ludovicscribe](https://profiles.wordpress.org/ludovicscribe/)

[Skini](https://downloads.wordpress.org/plugin/html-code-comments.1.1.1.zip)

 * [Detalji](https://bs.wordpress.org/plugins/html-code-comments/#description)
 * [Recenzije](https://bs.wordpress.org/plugins/html-code-comments/#reviews)
 *  [Instalacija](https://bs.wordpress.org/plugins/html-code-comments/#installation)
 * [Razvoj](https://bs.wordpress.org/plugins/html-code-comments/#developers)

 [Podrška](https://wordpress.org/support/plugin/html-code-comments/)

## Opis

#### 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

## Slike ekrana

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

## Instalacija

Automatic installation :

 1. On the plugin addition page, enter “html code comments” in the search field
 2. Click the install button on the “HTML Code Comments” plugin
 3. Wait for installaltion end and click the activate button.

Manual installation :

 1. Unzip the downloaded zip file.
 2. Upload the html-code-comments folder and its contents into the wp-content/plugins/
    directory of your WordPress installation
 3. Activate HTML Code Comments from Plugins page.

Next, go on the “HTML code in comments” page in “Settings” section of your WordPress
administration and set your allowed tags and enable
 or disable options. Finally,
enjoy !

## Recenzije

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

### 󠀁[Excellent 👏👏](https://wordpress.org/support/topic/excellent-%f0%9f%91%8f%f0%9f%91%8f/)󠁿

 [Foad Tahmasebi](https://profiles.wordpress.org/arshen/) 17. Novembra 2017.

Excellent!

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

### 󠀁[Excellent et pratique.](https://wordpress.org/support/topic/excellent-et-pratique/)󠁿

 [brunowp](https://profiles.wordpress.org/brunowp/) 31. Marta 2017.

Franchement pratique et les réglages sont vraiment simples – Merci Frankly practical
and the settings are really simple – Thanks

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

### 󠀁[Perfect, this must you have](https://wordpress.org/support/topic/perfect-this-must-you-have/)󠁿

 [senfgurke](https://profiles.wordpress.org/senfgurke/) 19. Januara 2017.

thank you so much, please continue to maintain this plugin. Great work

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/html-code-comments/reviews/)

## Saradnici i programeri

“HTML Code Comments” is open source software. The following people have contributed
to this plugin.

Doprinositelji

 *   [ ludovicscribe ](https://profiles.wordpress.org/ludovicscribe/)

[Prevedi “HTML Code Comments” na vaš jezik.](https://translate.wordpress.org/projects/wp-plugins/html-code-comments)

### Zainteresirani za razvoj?

[Pregledajte kôd](https://plugins.trac.wordpress.org/browser/html-code-comments/),
pogledajte [SVN spremište](https://plugins.svn.wordpress.org/html-code-comments/)
ili se pretplatite na [dnevnik razvoja](https://plugins.trac.wordpress.org/log/html-code-comments/)
od [RSS](https://plugins.trac.wordpress.org/log/html-code-comments/?limit=100&mode=stop_on_copy&format=rss).

## Zapis promijena

#### v2.0

**Publication date :** 09/21/2016

**Features :**

    ```
    - Configuration of allowed HTML tags and attributes
    - Forcing of `target` attributes value to `_blank`
    - Adding an option to enable or disable HTML code encoding
    ```

#### v1.0

**Publication date :** 09/15/2016

**Features :**

    ```
    - Encoding of HTML code between `code` and `pre` tags.
    ```

## Meta

 *  Version **1.1.1**
 *  Last updated **prije 10 godina**
 *  Active installations **10+**
 *  WordPress version ** 1.5.2 ili viša **
 *  Tested up to **4.7.33**
 *  Language
 * [English (US)](https://wordpress.org/plugins/html-code-comments/)
 * Tags
 * [code](https://bs.wordpress.org/plugins/tags/code/)[comment](https://bs.wordpress.org/plugins/tags/comment/)
   [html](https://bs.wordpress.org/plugins/tags/html/)[tag](https://bs.wordpress.org/plugins/tags/tag/)
 *  [Napredni pogled](https://bs.wordpress.org/plugins/html-code-comments/advanced/)

## Ocjene

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/html-code-comments/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/html-code-comments/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/html-code-comments/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/html-code-comments/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/html-code-comments/reviews/?filter=1)

[Dodaj moju recenziju](https://wordpress.org/support/plugin/html-code-comments/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/html-code-comments/reviews/)

## Doprinositelji

 *   [ ludovicscribe ](https://profiles.wordpress.org/ludovicscribe/)

## Podrška

Imate nešto za reći? Trebate pomoć?

 [Pogledaj forum podrške](https://wordpress.org/support/plugin/html-code-comments/)