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