Skip to content

Commit

Permalink
Removed ambiguous quotes in utils.md (#11363)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ptitet authored May 26, 2024
1 parent c50e837 commit 4539d16
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/api/utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,11 @@ Bun.deepEquals(new Foo(), { a: 1 }, true); // false

Escapes the following characters from an input string:

- `"` becomes `"""`
- `&` becomes `"&"`
- `'` becomes `"'"`
- `<` becomes `"&lt;"`
- `>` becomes `"&gt;"`
- `"` becomes `&quot;`
- `&` becomes `&amp;`
- `'` becomes `&#x27;`
- `<` becomes `&lt;`
- `>` becomes `&gt;`

This function is optimized for large input. On an M1X, it processes 480 MB/s -
20 GB/s, depending on how much data is being escaped and whether there is non-ascii
Expand Down

0 comments on commit 4539d16

Please sign in to comment.