$string
=
'foo isn\'t<br />
bar'
#1
|
nl2br
|
("foo isn't\n bar")
|
#2
|
nl2br
|
("Welcome\r\nThis is my HTML document", |
#3
|
nl2br
|
("This\r\nis\n\ra\nstring\r")
|