Advertisement
krot

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

Nov 26th, 2015
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement