Change text() to html() for retrieving data from the table.