nl2br() public static method

public static nl2br ( $obj = null, $is_xhtml = false )
Beispiel #1
0
 public function test_nl2br()
 {
     $this->assertEquals("new<br>\nline", Helper::nl2br("new\nline"));
     $this->assertEquals("new<br />\nline", Helper::nl2br("new\nline", true));
 }