This is basically encoding(base64?) the <textarea> and putting it in the URL.
Its a neat idea, but I think theres a limit to how long URLs can be.
Its a neat idea, but I think theres a limit to how long URLs can be.
Reassuringly:
function serialize(value) {
if (value === '') { return ''; }
const data = new TextEncoder().encode(value);
const compressed = pako.deflate(data, { level: 9 });
return Base64.fromUint8Array(compressed, true);
}