UNPKG

@wordpress/block-library

Version:
19 lines (18 loc) • 520 B
"use strict"; 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