Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork0
List of dangerous HTML character encoding labels
License
wooorm/html-dangerous-encodings
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
List of dangerous HTML character encoding labels.
This is a list of character encodings that are dangerous according to thespec.
Probably never!Maybe when building an HTML linter.
This package isESM only.In Node.js (version 14.14+, 16.0+), install withnpm:
npm install html-dangerous-encodings
In Deno withesm.sh:
import{htmlDangerousEncodings}from'https://esm.sh/html-dangerous-encodings@2'
In browsers withesm.sh:
<scripttype="module">import{htmlDangerousEncodings}from'https://esm.sh/html-dangerous-encodings@2?bundle'</script>
import{htmlDangerousEncodings}from'html-dangerous-encodings'console.log(htmlDangerousEncodings)
Yields:
['hz-gb-2312','csiso2022kr','csiso2022jp','iso-2022-jp','iso-2022-cn','iso-2022-cn-ext','iso-2022-kr','utf-16be','utf-16le']
This package exports the identifierhtmlDangerousEncodings.There is no default export.
List of dangerous HTML character encoding labels (Array<string>)
This package is fully typed withTypeScript.It exports no additional types.
This package is at least compatible with all maintained versions of Node.js.As of now, that is Node.js 14.14+ and 16.0+.It also works in Deno and modern browsers.
This package is safe.
wooorm/html-encodings— info on HTML character encodings
Yes please!SeeHow to Contribute to Open Source.
About
List of dangerous HTML character encoding labels
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.