Changed behaviour: "\r\n" would have been converted to 2 <br/> will now be converted to 1 single <br/>.
Motivation and Context
From the source code, nl2brr turns \r\n, \r and \n into HTML <br/> tag. And PHP's native nl2br does that and also converts \n\r.
So it seems nl2brr specifically single out \n\r and not handle it. This doesn't seem to really matter in most cases.
nl2br() is a C native implementation while nl2brr() is written with preg_replace(), which is much slower.
Reduce unnecessary function would reduce effort if handling the code base.
Description
<br/>
will now be converted to 1 single<br/>
.Motivation and Context
<br/>
tag. And PHP's native nl2br does that and also converts \n\r. So it seems nl2brr specifically single out \n\r and not handle it. This doesn't seem to really matter in most cases.How Has This Been Tested?