The problem is a bad regex in the wpautop
function. In /b2-include/b2functions.php
, you need to modify line 13 to look more like line 12. About three-quarters through the 13th line of function wpautop
, you should see a string something like:
p|h[1-6])>)
Just add a few characters to make it look like:
p|h[1-6])[^>]*>)
(Notice this sequence appears in the 12th line, right above it). That should fix the dangling tags issue in most places, unless you have block-level elements in list items or something similar.