How to use nl2br() to handle string with '\r\n'?
问题 I am retrieving a product description value stored in database from admin through textarea upon form submit. When I select the description from database I get $description = $row['description']; and I would like to echo $description on main page like this: echo nl2br($description); but I see "\r\n" characters instead of making new rows. From what I've found here and on the net, your string must be used between double quotes, like this: echo nl2br("Hello, \r\n This is the description"); Now,