Remove unwanted p tags on WordPress

Here in this short guide you will learn how to remove unwanted p tags on wordpress. Sometimes WordPress sites automatically generate unwanted <p> tags within content. This may create unwanted white spaces which may not good for designing your site or content. Example Problem: <p>This is paragraph 1.</p> <p>This is paragraph 2.</p> <p></p> <p>This is