New line to Paragraph

Enclose new line separated text in a html p tag
Input
Trim paragraphs:
Output