@wordpress/wordcount
Version:
WordPress word count utility.
15 lines (14 loc) • 414 B
JavaScript
/**
* 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.
*/
export default function stripHTMLComments(settings, text) {
return text.replace(settings.HTMLcommentRegExp, '');
}
//# sourceMappingURL=stripHTMLComments.js.map