Skip to content

Commit 0da6c8f

Browse files
authored
Update packages/kit/src/utils/escape.js
1 parent 6b317c9 commit 0da6c8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/kit/src/utils/escape.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ const escape_json_string_in_html_dict = {
2121
};
2222

2323
/**
24-
* Escape a JSON string to be embedded into a `<script>` tag
24+
* Escape a stringified JSON object that's going to be embedded in a `<script>` tag
2525
* @param {string} str
2626
*/
2727
export function escape_json_in_html(str) {
2828
return escape(str, escape_json_in_html_dict, (code) => `\\u${code.toString(16).toUpperCase()}`);
2929
}
3030

3131
/**
32-
* Escape a stringified JSON object that's going to be embedded in a `<script>` tag
32+
* Escape a string JSON value to be embedded into a `<script>` tag
3333
* @param {string} str
3434
*/
3535
export function escape_json_string_in_html(str) {

0 commit comments

Comments
 (0)