json - Can text be encoded with URIComponent instead of escaped? -


examples:

text escaped (in articlebody):

<script type="application/ld+json"> {   "@context": "http://schema.org",   "@type": "newsarticle",   "headline": "article headline",   "alternativeheadline": "the headline of article",   "image": ["thumbnail1.jpg", "thumbnail2.jpg"],   "datepublished": "2015-02-05t08:00:00+08:00",   "description": "a wonderful article",   "articlebody": "\"hello!\" said bob.\n\"hi,\" said jane, \"go away.\"" } </script> 

and same text encoded uricomponent (again, in articlebody):

    <script type="application/ld+json">     {       "@context": "http://schema.org",       "@type": "newsarticle",       "headline": "article headline",       "alternativeheadline": "the headline of article",       "image": ["thumbnail1.jpg", "thumbnail2.jpg"],       "datepublished": "2015-02-05t08:00:00+08:00",       "description": "a wonderful article",       "articlebody": "%22hello!%22%20said%20bob.%0a%22hi%2c%22%20said%20jane%2c%20%22go%20away.%22%0a"     }     </script> 

no, cannot. google not parse encoded text result in encoded characters appearing in rich snippet/rich card.

here's basic example — copy code below , paste google's schema checker:

<script type="application/ld+json"> {   "@context": "http://schema.org/",   "@type": "recipe",   "name": "perfect%20apple%20pie",   "image": "http://images.edge-generalmills.com/56459281-6fe6-4d9d-984f-385c9488d824.jpg" } </script> 

click 'validate' , you'll see green 'preview' button. when click preview, you'll see:

enter image description here


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -