I am becoming infuriated by the WordPress editor adding unwanted paragraph tags whilst editing pages. I have a few pages where I use divs to organise content, and WordPress adding these paragraph tags in between divs prevents my pages from becoming XHTML valid.
I am aware of the wpautop function and that there is plugins to disable this, however I do not want to have to do this as it is handy when writing regular blog entries/pages which do not require divs.
In versions prior to 2.5, removing
p/-div[*], from the line
$valid_elements = in
wp-includes/js/tinymce/tiny_mce_config.php fixed this problem. However, in 2.5 and above I can no longer find this line in the aforementioned file.
Is there a similar solution for versions 2.5 and above, or any hack/plugin that will fix my problem?
Any help in this matter would be greatly appreciated, thank you.