UNPKG

yoastseo

Version:

Yoast client-side content analysis

16 lines (15 loc) 409 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; /** * Removes all marks from a text * * @param {string} text The marked text. * @returns {string} The unmarked text. */ function _default(text) { return text.replace(new RegExp("<yoastmark[^>]*>", "g"), "").replace(new RegExp("</yoastmark>", "g"), ""); } //# sourceMappingURL=removeMarks.js.map