"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTextContent = getTextContent; var _specialCharacters = require("./special-characters"); /** * Internal dependencies */ /** @typedef {import('./types').RichTextValue} RichTextValue */ /** * Get the textual content of a Rich Text value. This is similar to * `Element.textContent`. * * @param {RichTextValue} value Value to use. * * @return {string} The text content. */ function getTextContent({ text }) { return text.replace(_specialCharacters.OBJECT_REPLACEMENT_CHARACTER, ''); } //# sourceMappingURL=get-text-content.js.map