you need to adjust the default value of `td` when you add htmlspecialchars.. I would suggest a String containing a single space.