Does anyone know how to detect line break in textfield (without html editor) and convert to paragraph? Thanks in advance!
<? function lb2pg( $data ) { $return = null; $array = split("\n", $data ); foreach( $array as $paragraph ) { $return .= "<p>$paragraph</p>\n"; } return $return; } echo lb2pg("Hello my name is joe\nI am from the uk\nI live in a house, not a box\nI walk with legs and not wheels"); PHP: something like that .....