Function Reference/wpautop
Description
Changes double line-breaks in the text into HTML paragraphs (<p>...</p>).
Wordpress uses it to filter the content and the excerpt.
Usage
<?php wpautop( $pee, $br = 1 ); ?>
Parameters
- pee
- (string) The text to be formatted.
- br
- (boolean) Preserve line breaks. When set to true, any line breaks remaining after paragraph conversion are converted to HTML <br />. Line breaks within script and style sections are not affected. Default true.
References
http://photomatt.net/scripts/autop/