New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wordpress/html-entities

Package Overview
Dependencies
Maintainers
14
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/html-entities - npm Package Compare versions

Comparing version 2.5.0 to 2.6.0

2

LICENSE.md
### WordPress - Web publishing software
Copyright 2011-2019 by the contributors
Copyright 2011-2020 by the contributors

@@ -5,0 +5,0 @@ This program is free software; you can redistribute it and/or modify

{
"name": "@wordpress/html-entities",
"version": "2.5.0",
"version": "2.6.0",
"description": "HTML entity utilities for WordPress.",

@@ -25,3 +25,3 @@ "author": "The WordPress Contributors",

"dependencies": {
"@babel/runtime": "^7.4.4"
"@babel/runtime": "^7.8.3"
},

@@ -31,3 +31,3 @@ "publishConfig": {

},
"gitHead": "2080b50d4a41c9f746485519d1dc368dd9d9354d"
"gitHead": "41fc84af285da696c65c235331ee245dfe23971d"
}

@@ -24,4 +24,9 @@ let _decodeTextArea;

if ( undefined === _decodeTextArea ) {
if ( document.implementation && document.implementation.createHTMLDocument ) {
_decodeTextArea = document.implementation.createHTMLDocument( '' ).createElement( 'textarea' );
if (
document.implementation &&
document.implementation.createHTMLDocument
) {
_decodeTextArea = document.implementation
.createHTMLDocument( '' )
.createElement( 'textarea' );
} else {

@@ -28,0 +33,0 @@ _decodeTextArea = document.createElement( 'textarea' );

@@ -22,2 +22,7 @@ /**

} );
it( 'should not care about leading zeros on entity codes', () => {
const html = 'Jim's mother&#039s post&#39s title.';
const expected = "Jim's mother's post's title.";
expect( decodeEntities( html ) ).toEqual( expected );
} );
} );

Sorry, the diff of this file is not supported yet

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