Skip to content

Svelte 5: Literal string prop values containing double quote improperly escaped in SSR #9454

@Conduitry

Description

@Conduitry

Describe the bug

In SSR, a prop value that's a literal string has " characters in it HTML-entity escaped when they should not be.

I checked a couple of other characters and didn't see any similar behavior with them, so it's possible it's just the double quote character.

Reproduction

https://svelte-5-preview.vercel.app/#H4sIAAAAAAAACo2OwQrCMBBEf2VZhCiU9l5bQfoZxoO0KQaaZEm2goT8u00LCuLB285jZnYijnpSAetLRHszCms8E2GB_KQswkNNrBYd3Oz7TJrQe018klayNuQ8Q3fX0wCjdwZEWa2q3ILiKG1TfRK22bzkHbVCoqgWurQbN-hRqwFr9rNKxXvMav93Tu9sYIhrOyRoYZevsD98r4iZp1-fr-kFHUxOmBIBAAA=

Logs

No response

System Info

REPL

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcompilerChanges relating to the compiler

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions