示例#1
0
 /**
  * remove newlines from string and minimize whitespace (multiple whitespace characters replaced by one space)
  *
  * useful for cleaning up text retrieved by HtmlPageCrawler::text() (nodeValue of a DOMNode)
  *
  * @param string $string
  * @return string
  */
 public static function trimNewlines($string)
 {
     return Helpers::trimNewlines($string);
 }