If you want to prevent WordPress from filtering line breaks <br> and <p> from a post, then go ahead reading this post ..
In spite of trying various methods such as putting line breaks “<br>” inside “<code>” tag and many other such HTML tricks (many of which can be easily found at WordPress) just to be able to put multiple intentional line breaks in a post, wordpress would eventually manage to filter those line breaks. Even if the tricks were successfully applied, when it came to re-editing a post, all efforts would go to vain when TinyMCE initiates its own filtering process.
WordPress has a built-in powerful post/text editor commonly known as the “Visual” editor, which uses the open source project named “TinyMCE“. When switching from Visual to HTML editor in WordPress or vice-versa TinyMCE executes a back-end filtration process which removes empty tags, and <br> tags from the post.
TinyMCE-Advanced from WordPress is a WordPress plugin, which adds the option to disable the removal of <p> and <br> tags when saving a post and in the HTML editor. After installing and activating, the option to enable line breaks can be found in the Settings => TinyMCE Advanced panel.
=> Stop removing the <p> and <br /> tags when saving and show them in the HTML editor
Aditionally, this plugin adds 16 plugins to TinyMCE, WordPress’ WYSIWYG editor: Advanced hr, Advanced Image, Advanced Link, Context Menu, Emotions (Smilies), Full Screen, IESpell, Layer, Media, Nonbreaking, Print, Search and Replace, Style, Table, Visual Characters and XHTML Extras. Together these plugins can add over 40 new buttons to the toolbar.
Stop WordPress from removing Linebreak, Linebreaks, Line Break, Line Breaks
Force Line Break in WordPress
Enabling Line Break “<br>” in WordPress
Linebreak in Posts
Stop remving <br> <p> tag in WordPress
Line break conversion
Formatting WordPress Posts using Line Breaks