code: protected function parseCellText(\SimpleXmlElement $cell)
      {
          $text = \trim(\preg_replace('/\s+/', ' ', \dom_import_simplexml($cell)->textContent));
  
          if ($prefix = (string) $cell['data-behat-table-prefix']) {
              $text = $prefix.' '.$text;
          }
  
          return $text;
      }
docs: @param \SimpleXmlElement $cell
  
  @return string