• Resolved Andreas

    (@slipkot)


    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://www.ads-software.com/plugins/add-meta-tags/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author George Notaras

    (@gnotaras)

    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="https://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

    (@slipkot)

    Hello George,

    you can take a look here… https://www.agrinio-sports.gr/?p=23217

    Plugin Author George Notaras

    (@gnotaras)

    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

    (@slipkot)

    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

    (@gnotaras)

    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

    (@slipkot)

    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

    (@gnotaras)

    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.