Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html-entities

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-entities - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

lib/full-html-entities.js

@@ -33,3 +33,7 @@ // Generated by CoffeeScript 1.4.0

if (entity.charAt(0) === "#") {
code = parseInt(entity.substr(1));
if (entity.charAt(1).toLowerCase() === 'x') {
code = parseInt(entity.substr(2), 16);
} else {
code = parseInt(entity.substr(1));
}
} else {

@@ -36,0 +40,0 @@ code = FullHtmlEntities.alphaIndex[entity];

2

package.json
{
"name": "html-entities",
"version": "1.0.1",
"version": "1.0.2",
"description": "Faster HTML entities encode/decode library.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -32,8 +32,8 @@ node-html-entities

```javascript
var Entities = require('html-entities').FullHtmlEntities;
var Entities = require('html-entities').FullHtmlEntities;
entities = new Entities();
console.log(entities.encode('<>"&©®')); // &lt;&gt;&quot;&amp;&copy;&reg;
console.log(entities.decode('&lt;&gt;&quot;&amp;&copy;&reg;')); // <>"&©®
entities = new Entities();
console.log(entities.encode('<>"&©®')); // &lt;&gt;&quot;&amp;&copy;&reg;
console.log(entities.decode('&lt;&gt;&quot;&amp;&copy;&reg;')); // <>"&©®
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc