[][src]Function html_auto_p::auto_p

pub fn auto_p<S: Into<String>>(pee: S, options: Options) -> String

A group of regex replaces used to identify text formatted with newlines and replace double line-breaks with HTML paragraph tags.

The original algorithm can be found in wp-includes/formatting.php

This function does not 100% work like wpautop does.