You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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, \\"this text is quoted\\" , the end" – which is incorrect. It should rendered as: "Hello world, "this text is quoted" , the end"
The text was updated successfully, but these errors were encountered:
LefBoutham
changed the title
Schema generation doesn't support escaped \" -characters
Schema generation doesn't support escaped " -characters
Oct 30, 2024
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 propsExpected 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, \\"this text is quoted\\" , the end"
– which is incorrect. It should rendered as:"Hello world, "this text is quoted" , the end"
The text was updated successfully, but these errors were encountered: