@wordpress/dom
Advanced tools
Comparing version 3.1.2 to 3.1.4
@@ -25,2 +25,3 @@ export { default as computeCaretRect } from './compute-caret-rect'; | ||
export { default as isRTL } from './is-rtl'; | ||
export { default as safeHTML } from './safe-html'; | ||
//# sourceMappingURL=index.js.map |
@@ -25,2 +25,3 @@ export { default as computeCaretRect } from "./compute-caret-rect"; | ||
export { default as isRTL } from "./is-rtl"; | ||
export { default as safeHTML } from "./safe-html"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -152,2 +152,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "safeHTML", { | ||
enumerable: true, | ||
get: function () { | ||
return _safeHtml.default; | ||
} | ||
}); | ||
@@ -201,2 +207,4 @@ var _computeCaretRect = _interopRequireDefault(require("./compute-caret-rect")); | ||
var _isRtl = _interopRequireDefault(require("./is-rtl")); | ||
var _safeHtml = _interopRequireDefault(require("./safe-html")); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@wordpress/dom", | ||
"version": "3.1.2", | ||
"version": "3.1.4", | ||
"description": "DOM utilities module for WordPress.", | ||
@@ -37,3 +37,3 @@ "author": "The WordPress Contributors", | ||
}, | ||
"gitHead": "a39d5605fcea63a9e02a9ae9d3f3d4f1685df14e" | ||
"gitHead": "42a6dbdbf9c981e71ea4752c94e5642d6f6cac1d" | ||
} |
@@ -351,2 +351,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** | ||
@@ -353,0 +365,0 @@ |
@@ -25,1 +25,2 @@ export { default as computeCaretRect } from './compute-caret-rect'; | ||
export { default as isRTL } from './is-rtl'; | ||
export { default as safeHTML } from './safe-html'; |
@@ -12,5 +12,4 @@ /** | ||
export const focus = { focusable, tabbable }; | ||
export * from './dom'; | ||
export * from './phrasing-content'; | ||
export * from './data-transfer'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
559989
313
6560
388
1