Why is my nl2br() function displaying \r instead of a break(<br />)? PHP
Posted
by ggfan
on Stack Overflow
See other posts from Stack Overflow
or by ggfan
Published on 2010-03-31T18:17:00Z
Indexed on
2010/03/31
18:23 UTC
Read the original article
Hit count: 318
php
When I use the function nl2br($text) it doesn't display the breaks I want it to but instead shows the \r of where the breaks are to be. I am display a confirmation page for a user that shows the detail they entered in the form.
Detail: this \r\nis what\r\ni want\r\n\r\n\r\nd
© Stack Overflow or respective owner