• Resolved Ahmed Elgameel

    (@elgameel)


    Hi there,

    I have a problem with the FAQ block with the Arabic language.

    The block does not support HTML tags (<a>, <strong>, <br>, <i> etc..) if the block is written in Arabic.

    It seems that the plugin encodes the text and that causes the problem, as it encodes the tag too. For example, <br> becomes u003cbr/u003e, and it seems that Google does not understand that and displays it as is.

    This is how a question with a link looks like in the page source:

    {"@type":"Question","@id":"https://example.com/page/#faq-question-1557436439883","position":5,"url":"https://example.com/page/#faq-question-1557436439883","name":"\u2705 \u0643\u064a\u0641 \u0623\u062d\u0635\u0644 \u0639\u0644\u0649 \u062f\u0648\u0645\u064a\u0646 \u0645\u062c\u0627\u0646\u0627\u064b\u061f","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\u064a\u0645\u0643\u0646\u0643 \u0627\u0644\u062d\u0635\u0648\u0644 \u0639\u0644\u0649 \u062f\u0648\u0645\u064a\u0646 \u0645\u062c\u0627\u0646\u0627\u064b \u0628\u0633\u0647\u0648\u0644\u0629 \u0639\u0646 \u0637\u0631\u064a\u0642 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062e\u0635\u0648\u0645\u0627\u062a \u0648\u0627\u0644\u0639\u0631\u0648\u0636 \u0627\u0644\u062a\u064a \u062a\u0642\u062f\u0645\u0647\u0627 \u0634\u0631\u0643\u0627\u062a \u0627\u0644\u0627\u0633\u062a\u0636\u0627\u0641\u0629 \u0644\u0632\u0648\u0627\u0631 \u0645\u0648\u0642\u0639 \u0639\u0645\u064a\u062f \u0627\u0644\u0627\u0633\u062a\u0636\u0627\u0641\u0629 \u062d\u0635\u0631\u064a\u0627\u064b \u0628\u0627\u0644\u0625\u0636\u0627\u0641\u0629 \u0625\u0644\u0649 \u0627\u0644\u062a\u062e\u0641\u064a\u0636\u0627\u062a \u0639\u0644\u0649 \u0623\u0633\u0639\u0627\u0631 \u0627\u0644\u0627\u0633\u062a\u0636\u0627\u0641\u0629 \u0648\u0647\u0630\u0647 \u0623\u0641\u0636\u0644 \u0627\u0644\u0634\u0631\u0643\u0627\u062a \u0627\u0644\u062a\u064a \u062a\u0642\u062f\u0651\u0645 u003ca href=u0022https://example.com/u0022u003e\u0627\u0633\u062a\u0636\u0627\u0641\u0629 \u0648\u062f\u0648\u0645\u064a\u0646u003c/au003e \u0645\u0639\u0647\u0627 \u0645\u062c\u0627\u0646\u0627\u064b \u0639\u0646\u062f \u0627\u0644\u0634\u0631\u0627\u0621.","inLanguage":"ar"},"inLanguage":"ar"},

    It can be easily fixed by escaping HTML tags while encoding the text.

    Thanks in advance,
    Ahmed Elgameel

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    Hi,

    Could you please confirm if you are using the latest version of WordPress 5.4.2 and Yoast SEO for WordPress 14.5?

    Based on the information you provided, we expect this to be a bug. We’re actively using the bug tracking on our GitHub repository so your best next step would be to create a new issue for our developers at https://github.com/Yoast/wordpress-seo/issues/new. You will need an account to create a new issue. If this is your first bug report, please check out: https://kb.yoast.com/kb/how-to-write-a-good-bug-report/.

    Don’t forget to include the URL to this conversation in your bug report.

    Thread Starter Ahmed Elgameel

    (@elgameel)

    Yes, I’m using the latest version.

    The interesting thing is, the block is working as expected on other pages on the same website!

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi,

    Just to clarify, it’s not working for one of your pages, but it’s working for the other posts and pages, all in the Arabian language?

    If so, just to be sure, we would like to rule out any plugin or theme conflicts that may occur. The fastest way to do this is to?deactivate all non-Yoast plugins and switch to a standard theme?like?Twenty Nineteen.?

    Test this on your development or staging site, if you have one. If not, we recommend using the?Health Check & Troubleshooting?plugin. This plugin allows you to run a conflict check?without affecting normal visitors to your site.

    As we can imagine that you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process:?How to check for plugin conflicts.

    Thread Starter Ahmed Elgameel

    (@elgameel)

    Hi @mikes41720

    I’ve already done that before posting this post.

    I can assure you that it is not a plugin or theme conflict.

    Yes, all the pages are in Arabic.

    Hi Ahmed,

    Thank you for doing that checking for conflicts. We track issues like this on our GitHub repository so your best next step, if you haven’t done so already, is to create a new bug report for our developers at?https://github.com/Yoast/wordpress-seo/issues/new/choose.

    There you can provide more details about the text where this is happening. You will need a GitHub account to create a new issue. If this is your first bug report, please check out:?https://kb.yoast.com/kb/how-to-write-a-good-bug-report/.

    Plugin Support Jerlyn

    (@jerparx)

    Hi @elgameel ,

    We’re closing this thread because we haven’t heard back from you in a while. Should you have further questions, please open a new thread.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Bug Report] Yoast FAQ block encodes HTML tags’ is closed to new replies.