Flow\Helper::nl2br PHP Method

nl2br() public static method

public static nl2br ( $obj = null, $is_xhtml = false )
    public static function nl2br($obj = null, $is_xhtml = false)
    {
        return nl2br(strval($obj), $is_xhtml);
    }

Usage Example

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));
 }