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

@wordpress/dom

Package Overview
Dependencies
Maintainers
21
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/dom - npm Package Compare versions

Comparing version 2.2.5 to 2.2.8

build-module/safe-html.js

1

build-module/index.js

@@ -16,2 +16,3 @@ /**

export * from './dom';
export { default as safeHTML } from './safe-html';
//# sourceMappingURL=index.js.map
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

@@ -9,4 +11,11 @@

var _exportNames = {
focus: true
focus: true,
safeHTML: true
};
Object.defineProperty(exports, "safeHTML", {
enumerable: true,
get: function get() {
return _safeHtml.default;
}
});
exports.focus = void 0;

@@ -31,2 +40,4 @@

var _safeHtml = _interopRequireDefault(require("./safe-html"));
/**

@@ -33,0 +44,0 @@ * Internal dependencies

4

package.json
{
"name": "@wordpress/dom",
"version": "2.2.5",
"version": "2.2.8",
"description": "DOM utilities module for WordPress.",

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

},
"gitHead": "4aae3e5976d36201284d70fd1ae3207a421ac50f"
"gitHead": "7b1894eae7ff50c5c7f35bc0f3cb603709d96332"
}

@@ -243,2 +243,16 @@ # DOM

### safeHTML
[src/index.js#L14-L14](src/index.js#L14-L14)
Strips scripts and on\* attributes from HTML.
**Parameters**
- **html** `string`: HTML to sanitize.
**Returns**
`string`: The sanitized HTML.
### unwrap

@@ -245,0 +259,0 @@

@@ -14,1 +14,2 @@ /**

export * from './dom';
export { default as safeHTML } from './safe-html';

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