UNPKG

@wordpress/wordcount

Version:
15 lines (14 loc) 464 B
/** * Internal dependencies */ /** * Replaces items matched in the regex with a single character. * * @param settings The main settings object containing regular expressions * @param text The string being counted. * @return The manipulated text. */ export default function transposeHTMLEntitiesToCountableChars(settings, text) { return text.replace(settings.HTMLEntityRegExp, 'a'); } //# sourceMappingURL=transposeHTMLEntitiesToCountableChars.js.map