@wordpress/dom
Advanced tools
Comparing version 2.16.3-next.645224df70.0 to 2.16.3
@@ -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 |
{ | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
436312
131
5027
0
370