@wordpress/block-library
Version:
Block library for the WordPress editor.
8 lines (7 loc) • 565 B
Source Map (JSON)
{
"version": 3,
"sources": ["../../src/utils/remove-anchor-tag.js"],
"sourcesContent": ["/**\n * Removes anchor tags from a string.\n *\n * @param {string} value The value to remove anchor tags from.\n *\n * @return {string} The value with anchor tags removed.\n */\nexport default function removeAnchorTag( value ) {\n\t// To do: Refactor this to use rich text's removeFormat instead.\n\treturn value.toString().replace( /<\\/?a[^>]*>/g, '' );\n}\n"],
"mappings": ";AAOe,SAAR,gBAAkC,OAAQ;AAEhD,SAAO,MAAM,SAAS,EAAE,QAAS,gBAAgB,EAAG;AACrD;",
"names": []
}