Window.escape compatible encoder #14281
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
core-n
library-convert
type-enhancement
A request for a change that isn't a bug
In AngularJS, we use window.escape to escape our cookie values:
From MDN, "
Encodes a string, replacing all characters except for ASCII digits, lower and upper case letters, and the characters * + - . / @ _ with a hexadecimal escape sequence.
"
There should be an equivalent function in Dart so that we can share cookies between Dart and Javascript.
Note, there are other functions in Dart that "percent-encode", but since we have a limited number of bytes to store cookies, we can not be over-zealous in what we escape.
The text was updated successfully, but these errors were encountered: