Escape the following characters in a string:
"
becomes """
&
becomes "&"
'
becomes "'"
<
becomes "<"
>
becomes ">"
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 text.
Non-string types will be converted to a string before escaping.
Generated using TypeDoc
Escape the following characters in a string:
"
becomes"""
&
becomes"&"
'
becomes"'"
<
becomes"<"
>
becomes">"
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 text.
Non-string types will be converted to a string before escaping.