jmyeom

remove newlines from content parse.class.php

Aug 22nd, 2011
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. in parse.class.php
  2.  
  3. find this:
  4.  
  5. $message = str_replace("\n", '<br />', $message);
  6.  
  7. replace with this:
  8.  
  9. $replace = array("\r\n","\n\r","\r","\n");
  10. $message = str_replace($replace, '<br />', $message);
  11.  
  12.  
  13. it works for board, untested for rss feeds, catalog mode and whatnot
Advertisement
Add Comment
Please, Sign In to add comment