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.16.3-next.645224df70.0 to 2.16.3

build-module/safe-html.js

1

build-module/index.js

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

export * from './data-transfer';
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;

@@ -60,2 +69,4 @@

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

@@ -62,0 +73,0 @@ * Internal dependencies

4

package.json
{
"name": "@wordpress/dom",
"version": "2.16.3-next.645224df70.0",
"version": "2.16.3",
"description": "DOM utilities module for WordPress.",

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

},
"gitHead": "c24e259d5c29457b154032d88c83da7e08ad186c"
"gitHead": "b999ebac949778189907910a521b2ba2d146b59b"
}

@@ -87,3 +87,3 @@ # DOM

- `Object[]`: An array containing all files.
- `Array<Object>`: An array containing all files.

@@ -334,2 +334,14 @@ <a name="getOffsetParent" href="#getOffsetParent">#</a> **getOffsetParent**

<a name="safeHTML" href="#safeHTML">#</a> **safeHTML**
Strips scripts and on\* attributes from HTML.
_Parameters_
- _html_ `string`: HTML to sanitize.
_Returns_
- `string`: The sanitized HTML.
<a name="unwrap" href="#unwrap">#</a> **unwrap**

@@ -336,0 +348,0 @@

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

export * from './data-transfer';
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