@wordpress/dom
Advanced tools
Comparing version 2.8.0 to 2.8.1
@@ -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.8.0", | ||
"version": "2.8.1", | ||
"description": "DOM utilities module for WordPress.", | ||
@@ -32,3 +32,3 @@ "author": "The WordPress Contributors", | ||
}, | ||
"gitHead": "41fc84af285da696c65c235331ee245dfe23971d" | ||
"gitHead": "295a5629f39062033000bc52a66d0b3235c2ef6d" | ||
} |
@@ -207,2 +207,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** | ||
@@ -209,0 +221,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
232552
34
3012
244