src/StringLib.php
/**
     * Replaces the given string's <br> tags with newlines for textfields.
     * @param $input - the input string
     * @return output - the output string that has been converted.
     */
Replaces the given string's  tags with newlines for textfields.
@param $input - the input string
@return output - the output string that has been converted.
Replaces the given string ' s tags with newlines for textfields . @param $input - the input string @return output - the output string that has been converted .
public static function br2nl($input) 
    {
        $output = str_replace('<br />', PHP_EOL, $input);
        return $output;
    }
public static function br2nl ( $ input ) { $ output = str_replace ( '<br />' , PHP_EOL , $ input ) ; return $ output ; }
Replaces the given string's <br> tags with newlines for textfields.
Replaces the given string ' s <br > tags with newlines for textfields .
//$output = preg_replace("/(\r\n|\n|\r)/", "", $input);