title: XPath to get all text in element as one value, removing line breaks
body: <p>I am trying to get all the text in a node for a following set and returning as one value (not multiple nodes).</p>
  
  <pre><code>&lt;p&gt;
     "I love eating out."
     &lt;br&gt;
     &lt;br&gt;
     "This is my favorite restaurant."
     &lt;br&gt;
     "I will definitely be back"
  &lt;/p&gt;
  </code></pre>
  
  <p>I am using '/p' and get all the results but it returns with line breaks. Also trying '/p/text()' results in getting each text between each tag as a separate returned value. The ideal return would be --</p>
  
  <pre><code>"I love eating out. This is my favorite restaurant. I will definitely be back"
  </code></pre>
  
  <p>I've tried searching other questions but couldn't find something as close. Please not that in the current environment I am restricted to only use an XPath Query and cannot parse after or setup any HTML pre-parsing. Specifically I'm using the importXML function inside of Google Docs.</p>