Title: HTML code on og:description
Last modified: August 30, 2016

---

# HTML code on og:description

 *  Resolved [Andreas](https://wordpress.org/support/users/slipkot/)
 * (@slipkot)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/html-code-on-ogdescription/)
 * Hello,
 * if there is an HTML code on the first characters that are collected for the description
   attirbute eg. ahref it appears at the description text. For example
    bla bla 
   bla LINK bla bla
 * the description shows bla bla bla <a href=….” bla
 * i thing it would be better not to parse it as a HTML code but as a regular text
   if this is possible.
 * thanks
 * [https://wordpress.org/plugins/add-meta-tags/](https://wordpress.org/plugins/add-meta-tags/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [George Notaras](https://wordpress.org/support/users/gnotaras/)
 * (@gnotaras)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/html-code-on-ogdescription/#post-6236569)
 * Hi,
 * Could you provide some sample content so I can reproduce the problem?
 * I tried with a post having the following text as the first paragraph:
 *     ```
       Test test test test test test test test test test <a href="http://example.org">example.org</a> test test test test test test test test test test test test test test test test test test test test test test test test test test test test test.
       ```
   
 * The generated `og:description` meta tag is:
 *     ```
       <meta property="og:description" content="Test test test test test test test test test test example.org test test test test test test test test test test test test test test test test test test test test test test test test test test test test test." />
       ```
   
 * Which is the expected result. HTML code is stripped using the WP API (`wp_kses()`
   function).
 * Please provide some more details so I can reproduce the problem.
 * Thanks in advance,
    George
 *  Thread Starter [Andreas](https://wordpress.org/support/users/slipkot/)
 * (@slipkot)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/html-code-on-ogdescription/#post-6236577)
 * Hello George,
 * you can take a look here… [http://www.agrinio-sports.gr/?p=23217](http://www.agrinio-sports.gr/?p=23217)
 *  Plugin Author [George Notaras](https://wordpress.org/support/users/gnotaras/)
 * (@gnotaras)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/html-code-on-ogdescription/#post-6236614)
 * Hi Andreas,
 * Most probably you use an older version of the plugin. I recall that another user
   had reported a similar issue. The issue was caused by a bug in the algorithm 
   that generates the excerpt and has now been fixed.
 * If you try the latest release, please let me know if it works as expected.
 * Χαιρετισμούς,
    Γιώργος
 *  Thread Starter [Andreas](https://wordpress.org/support/users/slipkot/)
 * (@slipkot)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/html-code-on-ogdescription/#post-6236664)
 * Everything is up-to-date. Including wordpress (4.2.2) and this plug-in (2.8.8).
   Maybe something else is wrong. Maybe a conflict with another plug-in?
 * Ανδρέας
 *  Plugin Author [George Notaras](https://wordpress.org/support/users/gnotaras/)
 * (@gnotaras)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/html-code-on-ogdescription/#post-6236666)
 * Hi Andreas,
 * I cannot reproduce it in 2.8.8. Tried adding exactly the same content and the
   description I get is:
 *     ```
       Ο Παναθηναϊκός προχώρησε σε διάψευση της είδησης περί ενδιαφέροντός του για την απόκτηση του Έρικ Μορένο, όπως αυτό κυκλοφόρησε ευρέως σήμερα.
       ```
   
 * A conflict with another plugin is not the case, unless a 3rd party plugin intentionally
   alters the Add-Meta-Tags functionality. BTW, do you have any customizations in
   the `functions.php` file of the theme?
 * Also, the plugin comment block `<!-- BEGIN/END Metadata added by Add-Meta-Tags
   WordPress plugin -->` seems to be missing, which, if the HTML comments are not
   stripped by other means (eg HTML compressors), means that the core files of the
   plugin must have been modified. And in that case, there is very little I can 
   do, because anything might have been changed.
 * George
 *  Thread Starter [Andreas](https://wordpress.org/support/users/slipkot/)
 * (@slipkot)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/html-code-on-ogdescription/#post-6236668)
 * You are right. After further testing on a local setup everything seems to work
   fine. I will investigate it further and i will let you know. Thanks for your 
   time! 🙂
 *  Plugin Author [George Notaras](https://wordpress.org/support/users/gnotaras/)
 * (@gnotaras)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/html-code-on-ogdescription/#post-6236669)
 * OK. I’m marking the topic as resolved then. Feel free to reopen if you have more
   feedback. 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘HTML code on og:description’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/add-meta-tags.svg)
 * [Add Meta Tags](https://wordpress.org/plugins/add-meta-tags/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-meta-tags/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-meta-tags/)
 * [Active Topics](https://wordpress.org/support/plugin/add-meta-tags/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-meta-tags/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-meta-tags/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [George Notaras](https://wordpress.org/support/users/gnotaras/)
 * Last activity: [10 years, 12 months ago](https://wordpress.org/support/topic/html-code-on-ogdescription/#post-6236669)
 * Status: resolved