src/Tao/Templating/Helpers/Modifier.php
public function nlToP($string)
	{
		$string = trim($string);
		$string = Modifiers::linebreaks($string);
		$string = str_replace("\n", "</p>\n<p>", $string);
		$string = str_replace('<p></p>', '', $string);
		return '<p>' . $string . '</p>' . PHP_EOL;
	}
public function nlToP($string)
	{
		$string = trim($string);
		$string = Modifiers::linebreaks($string);
		$string = str_replace("\n", "</p>\n<p>", $string);
		$string = str_replace('<p></p>', '', $string);
		return '<p>' . $string . '</p>' . PHP_EOL;
	}
public function nlToP ( $ string ) { $ string = trim ( $ string ) ; $ string = Modifiers :: linebreaks ( $ string ) ; $ string = str_replace ( "\n" , "</p>\n<p>" , $ string ) ; $ string = str_replace ( '<p></p>' , '' , $ string ) ; return '<p>' . $ string . '</p>' . PHP_EOL ; }
Converts text line breaks into HTML paragraphs.

@param string $string String to transform
@return string
Converts text line breaks into HTML paragraphs .