• Resolved Murat Karagöz

    (@muratkaragoz46)


    Google Rich Snippet Check tool gives error if the product description includes apostrophe or html code. I think you should use $description= str_replace('"', "'", $description);

    or just use strip_tags()

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Murat Karagöz

    (@muratkaragoz46)

    <script type="application/ld+json">
        {
          "@context": "https://schema.org/", 
          "@type": "Product", 
          "name": "Bosch 15 Parçalı Mini X-Line Seti",
          "image": "https://www.karagozticaret.com/ortam/bosch-15-parcali-mini-x-line-seti.png",
          "description": "Orjinal Bosch X-Line Vidalama ve Matkap Ucu Seti 15 Parça (Bosch Resmi Garantili ,adınıza faturalı ,Alman Malı )
    Ayrıntılar
    Bosch X-Line Vidalama ve Matkap Ucu Seti 15 Parça
    İçerik 3 taş delme ucu, Ø 5/6/8 mm 3 ahşap delme ucu, Ø 4/6/8 mm 8 vidalama ucu, L = 25 mm PH 1/2 PZ 1/2 S 4/6 T 20/25 1 üniversal tutucu, manyetik
    Ambalaj Etiketli, askı delikli plastik kutu
    Ölçüleri (uxgxy) 194 x 83 x 21
    Ağırlık 0.22 kg
    Ambalaj içeriği 15 Adet
    içerik: 1 Adet set gönderilecektir Garanti :Üretim ve işçilik hatalarına karşı 2 Yıl
    
    <strong>Bosch DIY garanti bilgisi</strong>
    Bu ürün Bosch Sanayi ve Ticaret A.Ş. garantisi altındadır. Ürününüzde oluşan herhangi bir arıza durumunda tüm Bosch Elektrikli El Aletleri Yetkili Servislerinden hizmet alabilirsiniz veya + 90 216 432 0 432 no’lu müşteri hizmetlerini arayıp ya da <a href="mailto:destek@boschelektriklielaletleri.com">destek@boschelektriklielaletleri.com</a> adresine e-mail atarak bilgi edinebilirsiniz. Bosch Elektrikli El Aletleri garanti şartlarına aşağıdaki linkten ulaşabilirsiniz. Ürününüz profesyonel ürün ise: <a href="https://webapp.bosch.de/warranty/locale.do?localeCode=tr_TR">https://webapp.bosch.de/warranty/locale.do?localeCode=tr_TR</a> Ürününüz hafif hizmet grubuna ait ürün ise: <a href="https://www.bosch-diy.com/tr/tr/service/garanti">https://www.bosch-diy.com/tr/tr/service/garanti</a>",
          "sku": "KAR0000000128",
          "offers": {
            "@type": "Offer",
            "priceCurrency": "TRY",
            "price": "102.03560399908",
            "url": "https://www.karagozticaret.com/urun/bosch-15-parcali-mini-x-line-seti/",
            "availability": "https://schema.org/InStock",
            "itemCondition": "https://schema.org/NewCondition"
          },
          "aggregateRating": {
            "@type": "AggregateRating",
            "ratingValue": "0",
            "bestRating": "5",
            "worstRating": "1",
            "ratingCount": "0"
          }
        }
        </script>
    Plugin Author Luke

    (@easyschema)

    Hello,

    Thanks for getting in touch with this issue. I agree that using the strip_tags() function or string replace would solve this issue. I will test this out and make sure it doesn’t cause any other compatibility problems and hopefully push it in the next update. I will also give you credit in the release notes for bringing it to my attention + solving it.

    Thankyou for using my plugin,

    Luke.

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

The topic ‘apostrophe error’ is closed to new replies.