@wordpress/block-library
Version:
Block library for the WordPress editor.
14 lines (13 loc) • 398 B
JavaScript
// 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