• Resolved Gulshan Kumar

    (@thegulshankumar)


    Hello Team Rank Math,

    When I audited my HTML code, I discovered following issues.

    #1. HTML Entities in JSON-LD Schema (Data Error)

      // ❌ Wrong — & breaks JSON parsing
      "url": "https://secure.gravatar.com/avatar/…?s=96&d=mm&r=g"

      // ✅ Fix — use plain & inside JSON-LD
      "url": "https://secure.gravatar.com/avatar/…?s=96&d=mm&r=g"

      Fix: JSON-LD must use raw &, not HTML-escaped &. This is a Rank Math plugin issue — report or override via their settings.

      #2. Twitter/X Deprecated Meta Tags (Warning)

      <!– These are now deprecated by X/Twitter –>
      <meta name="twitter:label1" content="Time to read" />
      <meta name="twitter:data1" content="2 minutes" />

      Fix: Remove these tags. X/Twitter no longer supports twitter:label / twitter:data in card previews.

      Thanks

    Viewing 4 replies - 1 through 4 (of 4 total)
    • Plugin Support Jaideep Asrani

      (@jaideeprm)

      Hello @thegulshankumar,

      Thank you for contacting Rank Math support.

      1. Both wrong and right URLs are the same. Please share a screenshot using a tool like https://imgur.com, so we can check, and assist you further.
      2. The tags you mentioned are used for enhancing the link sharing in Slack, not for Twitter cards. If you want to remove those tags, please disable the Slack Enhanced Sharing option in WP Dashboard > Rank Math SEO > Titles & Meta > Post Types.

      Looking forward to helping you.

      Thread Starter Gulshan Kumar

      (@thegulshankumar)

      1. Please refer to https://gist.github.com/thegulshankumar/f36a1bc4ac938b2d22c23505039350be
      2. Noted.

      Thanks for your assistance.

      Plugin Support Jaideep Asrani

      (@jaideeprm)

      Hello @thegulshankumar,

      The values are processed through wp_kses_post_deep as a security measure to prevent XSS (Cross-Site Scripting) vulnerabilities. This doesn’t affect the data read by the search engines, as the schema validator converts the values to their HTML equivalent.

      Please do not hesitate to let us know if you need our assistance with anything else.

      Thank you.

      Plugin Support Jeremy

      (@jeremrm)

      Hello @thegulshankumar,

      Since we didn’t hear back from you, we are going to close this thread. Feel free to re-open it or create a new one if you still need assistance.

      Thank you.

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

    You must be logged in to reply to this topic.