@wordpress/wordcount
Version:
WordPress word count utility.
21 lines (19 loc) • 516 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = stripHTMLComments;
/**
* Internal dependencies
*/
/**
* Replaces items matched in the regex with new line.
*
* @param settings The main settings object containing regular expressions
* @param text The string being counted.
* @return The manipulated text.
*/
function stripHTMLComments(settings, text) {
return text.replace(settings.HTMLcommentRegExp, '');
}
//# sourceMappingURL=stripHTMLComments.js.map