[wp-hackers] newlines from rich text editor do not convert to paragraphs

scribu scribu at gmail.com
Mon Dec 14 16:00:07 UTC 2009


On Mon, Dec 14, 2009 at 2:32 PM, Davit Barbakadze <jayarjo at gmail.com> wrote:

> Probably it would have been more logical applying filters attached to
> 'the_content' hook within get_the_content() function. This way we
> could get filtered content echoed via the_content() tag, filtered
> content in a string via get_the_content() and pure content via
> $post->post_content.
>

You can apply the filter yourself:

$filtered_content = apply_filters('the_content', get_the_post_content());


-- 
http://scribu.net


More information about the wp-hackers mailing list