I'm having text like this:
some text \r\n \r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n some text \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n some text \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
I need to replace each block of multiple \r\n with just one <br/>
I tried to use str_replace('\\r\\n','<br/>',$text); but I ended up with too many <br/>
I need the final output to be like this:
some text <br/> some text <br/> some text <br/>