How to convert \n \r ‘line breaks’ to HTML <br> line breaks PHP The nl2br PHP function can be used to convert \n \r 'line breaks' to HTML <br> line breaks. It will correctly handle the variations of \r\n \n\r \n \r How…