Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed May 6, 2022
1 parent 1b0e836 commit 61e180b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/runtime/internal/ssr.ts
Expand Up @@ -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;

Expand Down

0 comments on commit 61e180b

Please sign in to comment.