I have some html data coming from database dynamically. In some of the html the div is properly closed and some records the the div inside is not properly closed with . 
I put these things into a jquery tab but when the unended div comes the tab stop working. I want something in which the the open div's will be ended dynamically.