@wordpress/dom
Advanced tools
Comparing version 2.13.1 to 2.13.2
@@ -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 |
{ | ||
"name": "@wordpress/dom", | ||
"version": "2.13.1", | ||
"version": "2.13.2", | ||
"description": "DOM utilities module for WordPress.", | ||
@@ -33,3 +33,3 @@ "author": "The WordPress Contributors", | ||
}, | ||
"gitHead": "862bb53a4af8aa5852a22445b5d12591d5500e52" | ||
"gitHead": "a04c5a93fd1120308e407d9d3d95a5bb71855a19" | ||
} |
@@ -242,2 +242,14 @@ # DOM | ||
<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** | ||
@@ -244,0 +256,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
251100
34
3250
279