UNPKG

@wordpress/wordcount

Version:
21 lines (19 loc) 500 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = stripHTMLEntities; /** * Internal dependencies */ /** * Removes items matched in the regex. * * @param settings The main settings object containing regular expressions * @param text The string being counted. * @return The manipulated text. */ function stripHTMLEntities(settings, text) { return text.replace(settings.HTMLEntityRegExp, ''); } //# sourceMappingURL=stripHTMLEntities.js.map