@wordpress/block-library
Version:
Block library for the WordPress editor.
19 lines (18 loc) • 520 B
JavaScript
;
Object.defineProperties(exports, {
__esModule: { value: true },
[Symbol.toStringTag]: { value: "Module" }
});
// packages/block-library/src/utils/remove-anchor-tag.js
/**
* Removes anchor tags from a string.
*
* @param {string} value The value to remove anchor tags from.
*
* @return {string} The value with anchor tags removed.
*/
function removeAnchorTag(value) {
return value.toString().replace(/<\/?a[^>]*>/g, "");
}
exports.default = removeAnchorTag;
//# sourceMappingURL=remove-anchor-tag.cjs.map