mirror of https://github.com/sveltejs/svelte
fix: only escape characters in SSR template (#10555)
Adjusts the escaping mechanism done for server compilation. For template literals it's now only applied when explicitly told, which is the case for generated literals from the html template. Fixes a bug where a template literal string inside the `@html` tag was wrongfully escaped (https://github.com/sveltejs/svelte/issues/10359#issuecomment-1949678228)pull/10558/head
parent
08978bfae8
commit
aef245364c
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"svelte": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: only escape characters in SSR template
|
@ -0,0 +1,5 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
html: `s s s \\u73`
|
||||||
|
});
|
@ -0,0 +1,5 @@
|
|||||||
|
{@html `\u{73}`}
|
||||||
|
{@html '\u{73}'}
|
||||||
|
{@html "\u{73}"}
|
||||||
|
|
||||||
|
\u{73}
|
Loading…
Reference in new issue