UNPKG

yoastseo

Version:

Yoast client-side content analysis

23 lines (22 loc) 658 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; var _stripHTMLTags = require("./stripHTMLTags.js"); var _unifyWhitespace = require("./unifyWhitespace"); /** * Sanitizes the text before we use the text for the analysis. * * @param {String} text The text to be sanitized. * * @returns {String} The sanitized text. */ function _default(text) { // Unify whitespaces and non-breaking spaces. text = (0, _unifyWhitespace.unifyAllSpaces)(text); // Strip the tags and multiple spaces. text = (0, _stripHTMLTags.stripFullTags)(text); return text; } //# sourceMappingURL=sanitizeString.js.map