Encodes the given string to be RFC-3986 compliant.
This is encodeURIComponent plus the percent encoding for !, ', (, ), and *.
encodeURIComponent
!
'
(
)
*
the string to encode
the encoded string
import { encodeRfc3986 } from "@trashpanda001/helpers/string"encodeRfc3986("interrobang?!")// "interrobang%3F%21" Copy
import { encodeRfc3986 } from "@trashpanda001/helpers/string"encodeRfc3986("interrobang?!")// "interrobang%3F%21"
Encodes the given string to be RFC-3986 compliant.
This is
encodeURIComponent
plus the percent encoding for!
,'
,(
,)
, and*
.