A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/wooorm/html-dangerous-encodings below:

wooorm/html-dangerous-encodings: List of dangerous HTML character encoding labels

List of dangerous HTML character encoding labels.

This is a list of character encodings that are dangerous according to the spec.

Probably never! Maybe when building an HTML linter.

This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:

npm install html-dangerous-encodings

In Deno with esm.sh:

import {htmlDangerousEncodings} from 'https://esm.sh/html-dangerous-encodings@2'

In browsers with esm.sh:

<script type="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 identifier htmlDangerousEncodings. There is no default export.

List of dangerous HTML character encoding labels (Array<string>)

This package is fully typed with TypeScript. 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.

Yes please! See How to Contribute to Open Source.

MIT © Titus Wormer


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4