Skip to content

Commit 5ba013e

Browse files
authored
Apply suggestions from code review
1 parent 81bd131 commit 5ba013e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/** @import { Payload } from '#server' */
22

3-
import { escape } from '..';
3+
import { escape_html } from '../../../escaping.js';
44

55
/**
66
* @param {Payload} payload
77
* @param {Record<string, string>} attributes
88
*/
99
export function svelte_html(payload, attributes) {
1010
for (const name in attributes) {
11-
payload.htmlAttributes.set(name, escape(attributes[name], true));
11+
payload.htmlAttributes.set(name, escape_html(attributes[name], true));
1212
}
1313
}

0 commit comments

Comments
 (0)