@wordpress/dom
Advanced tools
Comparing version 2.2.5 to 2.2.8
@@ -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.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
223302
34
2867
286