Created
September 11, 2023 12:30
-
-
Save outlyer/4d317caa1d24537744e391590793239c to your computer and use it in GitHub Desktop.
Fix HTML Entity Encoding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fixEncoding = s => new TextDecoder().decode(new Uint8Array(s.split('').map(r=>r.charCodeAt()))) | |
console.log(fixEncoding('Além')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment