Disallows BRs in inline elements and cleans out empty inline elements

This seems to make stuff work better. I'd like to come up with some more tests for this thing, if you guys can think of anything.