From 61e180b2b9d9dcb4ca930375081786e47caa1918 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Fri, 6 May 2022 11:07:10 -0700 Subject: [PATCH] add comment --- src/runtime/internal/ssr.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/runtime/internal/ssr.ts b/src/runtime/internal/ssr.ts index f9cd27bcbc..7fee80a0ec 100644 --- a/src/runtime/internal/ssr.ts +++ b/src/runtime/internal/ssr.ts @@ -72,6 +72,10 @@ export function merge_ssr_styles(style_attribute, style_directive) { const ATTR_REGEX = /[&"]/g; const CONTENT_REGEX = /[&<]/g; +/** + * Note: this method is performance sensitive and has been optimized + * https://github.com/sveltejs/svelte/pull/5701 + */ export function escape(html: string, is_attr = false) { if (typeof html !== 'string') return html;