What is wpautop
WordPress uses wpautop function to filter the content and the excerpt. This is used by WordPress to change double line-breaks in the text into HTML paragraphs (<p>… </p>).
How to Disable wpautop
If you are having an issue with the wpautop function then you can turn it off in your site with a very simple hack.
Open your “functions.php” file of your theme and add the following two lines and it will disalbe the wpautop function:
remove_filter ('the_content', 'wpautop'); remove_filter ('comment_text', 'wpautop');
You can also create a small plugin with the above code and activate it as a WordPress plugin.