Skip to content

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

Open
@LefBoutham

Description

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"

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions