code: function getTextFromContent(contentNodes) {
    if (contentNodes === null) {
      return '';
    }
    const texts = [...contentNodes].map(node => node.textContent);
    const text = texts.join('').trim();
    return unescapeHtml(text);
  }
docs: Return the text represented by the given content nodes.