krot

delete hetml comment

Dec 3rd, 2015
91
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   $content = preg_replace("/<!--(.*?)-->/s", "", $content);
  2.   $content = preg_replace("/[\x0d\x0a]+/", " ", $content);
  3.   $content = preg_replace("/>\s{4,}</", "> <", $content);
  4.  $content = preg_replace('/(["\'])\s+\/>/', '\1/>', $content);
RAW Paste Data