title: PHP remove newline in string for both Linux and Windows
body: <p>Currently I have to call</p>
  <pre><code>    $html = str_replace($search=&quot;\r\n&quot;, $replace='', $subject=$html);
      $html = str_replace($search=&quot;\n&quot;,   $replace='', $subject=$html);
  </code></pre>
  <p>to remove <code>new line</code> character in string <code>$html</code>. Is there a better/shorter way?</p>