Converts all newline characters to HTML breaks

package Formagic\Filter
author Florian Sonnenburg
since 2009 First time introduced

 Methods

Transforms all newline characters to HTML breaks.

filter(string $value) : string

Utilizes PHP's \nl2br().

inherited_from \Formagic_Filter_Interface::filter()

Parameters

$value

string

The string to be filtered

Returns

stringThe filtered string