Converts all newline characters to HTML breaks

category Formagic
package Filter
author Florian Sonnenburg
copyright Copyright (c) 2009 Florian Sonnenburg
version $Id: Nl2br.php 160 2012-04-02 20:18:14Z meweasle $

 Methods

Transforms all newline characters to HTML breaks.

filter(string $value) : string

Utilizes PHP's nl2br().

Parameters

$value

string

The string to be filtered

Returns

stringThe filtered string