Skip to content

Commit 61e180b

Browse files
committed
add comment
1 parent 1b0e836 commit 61e180b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/runtime/internal/ssr.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ export function merge_ssr_styles(style_attribute, style_directive) {
7272
const ATTR_REGEX = /[&"]/g;
7373
const CONTENT_REGEX = /[&<]/g;
7474

75+
/**
76+
* Note: this method is performance sensitive and has been optimized
77+
* https://github.com/sveltejs/svelte/pull/5701
78+
*/
7579
export function escape(html: string, is_attr = false) {
7680
if (typeof html !== 'string') return html;
7781

0 commit comments

Comments
 (0)