Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema generation doesn't support escaped " -characters #1486

Open
LefBoutham opened this issue Oct 29, 2024 · 0 comments
Open

Schema generation doesn't support escaped " -characters #1486

LefBoutham opened this issue Oct 29, 2024 · 0 comments

Comments

@LefBoutham
Copy link
Contributor

Describe the bug
When generating schema from an example string: "Hello world, \"this text is quoted\", the end" – the escaped quotes are rendered as: "Hello world, \\"this text is quoted\\" , the end" – which is incorrect. It should rendered as: "Hello world, "this text is quoted" , the end"

Reproduction
Use any string that has escaped " -characters in it and pass it into <ProductJsonLd>component props

Expected behavior
Escaped characters should be parsed appropriately without having unnecessary escape characters in the schema output. Repeating the description here to showcase exact expected behaviour: When generating schema from an example string: "Hello world, \"this text is quoted\", the end" – the escaped quotes are rendered as: "Hello world, \\&quot;this text is quoted\\&quot; , the end" – which is incorrect. It should rendered as: "Hello world, &quot;this text is quoted&quot; , the end"

@LefBoutham LefBoutham changed the title Schema generation doesn't support escaped \" -characters Schema generation doesn't support escaped " -characters Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant