Skip to content

Commit 6b317c9

Browse files
Update packages/kit/src/utils/escape.js
Co-authored-by: Ben McCann <[email protected]>
1 parent 9565f9e commit 6b317c9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/kit/src/utils/escape.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,7 @@ export function escape_json_in_html(str) {
2929
}
3030

3131
/**
32-
* escape a json string to be embedded into a larger json object thats going to be embedded in html
33-
*
34-
* <script>
35-
* {
36-
* "foo":"output here"
37-
* }
38-
* </script>
32+
* Escape a stringified JSON object that's going to be embedded in a `<script>` tag
3933
* @param {string} str
4034
*/
4135
export function escape_json_string_in_html(str) {

0 commit comments

Comments
 (0)