Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Nov 21, 2024
1 parent 81bd131 commit 5ba013e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/svelte/src/internal/server/blocks/svelte-html.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/** @import { Payload } from '#server' */

import { escape } from '..';
import { escape_html } from '../../../escaping.js';

/**
* @param {Payload} payload
* @param {Record<string, string>} attributes
*/
export function svelte_html(payload, attributes) {
for (const name in attributes) {
payload.htmlAttributes.set(name, escape(attributes[name], true));
payload.htmlAttributes.set(name, escape_html(attributes[name], true));
}
}

0 comments on commit 5ba013e

Please sign in to comment.