Skip to content

Instantly share code, notes, and snippets.

@kirjavascript
Created February 5, 2023 19:55
Show Gist options
  • Save kirjavascript/e207ecef6cfabb96bacb8f4105d145d8 to your computer and use it in GitHub Desktop.
Save kirjavascript/e207ecef6cfabb96bacb8f4105d145d8 to your computer and use it in GitHub Desktop.
const str = [...`stegosaurus`]
.map((d) => String.fromCodePoint(0xe0000 + d.charCodeAt()))
.join('');
document.body.innerHTML = `unescape(escape\`${str}\`.replace(/u.{8}/g,""))`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment