krot

bitrix удалить лишнии символы

Nov 26th, 2015
100
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. AddEventHandler("main", "OnEndBufferContent", "deleteEOLHTML");
  3. function deleteEOLHTML(&$content) {
  4. $content = preg_replace("/[\n\r]+/", '', $content);
  5. $content = preg_replace("/\s{2,}/", ' ', $content);
  6. }
RAW Paste Data