changed .text() to .html() to support table cells with elements in them