We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81bd131 commit 5ba013eCopy full SHA for 5ba013e
packages/svelte/src/internal/server/blocks/svelte-html.js
@@ -1,13 +1,13 @@
1
/** @import { Payload } from '#server' */
2
3
-import { escape } from '..';
+import { escape_html } from '../../../escaping.js';
4
5
/**
6
* @param {Payload} payload
7
* @param {Record<string, string>} attributes
8
*/
9
export function svelte_html(payload, attributes) {
10
for (const name in attributes) {
11
- payload.htmlAttributes.set(name, escape(attributes[name], true));
+ payload.htmlAttributes.set(name, escape_html(attributes[name], true));
12
}
13
0 commit comments