Socket
Socket
Sign inDemoInstall

character-entities-legacy

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    character-entities-legacy

HTML legacy character entity information


Version published
Weekly downloads
7.3M
decreased by-11.01%
Maintainers
1
Install size
7.68 kB
Created
Weekly downloads
 

Package description

What is character-entities-legacy?

The character-entities-legacy npm package provides a collection of character entity references (such as & for an ampersand) that were used in older versions of HTML (up to HTML 4.01 and XHTML 1.0). These entities are useful for encoding special characters in HTML to ensure they are displayed correctly in a web browser. The package can be used to reference these entities in a project without having to remember the specific codes.

What are character-entities-legacy's main functionalities?

Character Entity References

This package includes a list of character entity references for legacy HTML, which can be used to encode special characters in web documents.

"©" // Represents the copyright symbol (©)

Other packages similar to character-entities-legacy

Readme

Source

character-entities-legacy

Build Downloads Size

HTML legacy character entity information: for legacy reasons some character entities are not required to have a trailing semicolon: &copy is perfectly okay for ©.

Install

npm:

npm install character-entities-legacy

Use

var characterEntitiesLegacy = require('character-entities-legacy')

console.log(characterEntitiesLegacy.copy) // => '©'
console.log(characterEntitiesLegacy.frac34) // => '¾'
console.log(characterEntitiesLegacy.sup1) // => '¹'

API

characterEntitiesLegacy

Mapping between (case-sensitive) legacy character entity names to replacements.

Support

See whatwg/html.

License

MIT © Titus Wormer

Keywords

FAQs

Last updated on 24 Jan 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc