• Love your plugin. I’ve worked with a dozen and yours is the best so far.

    I’m trying to get JSON-LD examples in blog posts but when I try to view it it’s all messed up. If I remove the <script> tags it works fine but I want my users to be able to post the sample code to Google Structured Data Tool.

    Example Code
    <script type=”application/ld+json”>
    {
    “@context”: “https://schema.org&#8221;,
    “@type”: “LocalBusiness”,
    “address”: {
    “@type”: “PostalAddress”,
    “addressLocality”: “Mexico Beach”,
    “addressRegion”: “FL”,
    “streetAddress”: “3102 Highway 98”
    },
    “description”: “A superb collection of fine gifts and clothing to accent your stay in Mexico Beach.”,
    “name”: “Beachwalk Beachwear & Giftware”,
    “telephone”: “850-648-4200”
    }
    </script>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter thomas09427

    (@thomas09427)

    Also, I’ve tried JSON, Javascript, Schema, PHP, and HTML for languages and always get the same results.

    Thanks for your time.

    Thomas

    Thread Starter thomas09427

    (@thomas09427)

    Ok, I figured it out.I was pasting the code from a Google Doc. So I’m going to guess it was the formatting inserted from copying and pasting. I used an HTML encoder to remove the formatting then used the code.

    Works awesome now.

    Great plugin.

    Thanks

    Plugin Contributor Yoav Kadosh

    (@ykadosh)

    Hi there, sorry for the late response.
    Yes, there is an issue with encoding SCRIPT tags. I’m glad you’ve found a workaround, but i’m working on a permanent fix for it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JSON-LD (Schema) Rendering Issues’ is closed to new replies.