Automatically Add Paragraph-Tags
If you want to automatically add <p> tags for line breaks, you can use the snippet below:
$text_without_paragraph_tags= 'Das ist die Zeile 1
aus meinem Text, der keine Absätze
enthält. Darum nutze ich die wpautop()-Funktion';
echo wpautop( $text_without_paragraph_tags );