UNPKG

@wordpress/block-library

Version:
14 lines (13 loc) • 398 B
// 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, ""); } export { removeAnchorTag as default }; //# sourceMappingURL=remove-anchor-tag.mjs.map