How to detect if html contains block level elements using jQuery?
I want to be able to determine if the html contents of a particular element contains block level elements or not...

I was using `$(el.html()).length == 0` to indicate that it **doesn't** which was working fine, but I soon realised that if the html contains a "successful" css selector then the whole thing goes pear-shaped.

Any ideas?


How to detect if html contains block level elements using jQuery?
===

I want to be able to determine if the html contents of a particular element contains block level elements or not...

I was using `$(el.html()).length == 0` to indicate that it **doesn't** which was working fine, but I soon realised that if the html contains a "successful" css selector then the whole thing goes pear-shaped.

Any ideas?

