artesaos / seotools

SEO Tools for Laravel
MIT License
3.04k stars 503 forks source link

JSON-LD returns escaped urls #234

Closed ibi206 closed 3 years ago

ibi206 commented 3 years ago

What steps will reproduce the problem?

Configure json-ld

What do you get instead?

 <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"EducationalOrganization","name":"Academia de Informática Easy System","address":{"@type":"PostalAddress","name":"Academia de Informática Easy System","streetAddress":"Río de Monelos 18 1º","addressCountry":"España","postalCode":"15006"}}</script>

image

Additional info

blog/vendor/artesaos/seotools/src/SEOTools/JsonLd.php:96 -> output string with escaped "/"

Q A
This Package Version 0.19.1
Laravel Framework Version 8.15
PHP version 7.4
Operating system macOS Catalina
Ali-Shaikh commented 3 years ago

Haha, I came here today for exactly the same issue. Any help would be appreciated

vinicius73 commented 3 years ago

Closed by #236