Describe the bug
Line feed entities (

) are turned into spaces.
Reproduction
<script>
import Component from './Component.svelte';
</script>
<!-- Has no line breaks -->
<span title="A
B">in title</span>
<Component text="A
B" />
<!-- Has line break -->
<Component text={'A\nB'} />
<!-- Component.svelte -->
<script>
const { text } = $props();
console.log(JSON.stringify(text));
</script>
<pre>{text}</pre>
Playground
Logs
System Info
Severity
annoyance