Make table generation more robust

Currently the table object is not very robust regarding HTML content.
This PR includes:
- making table generation more robust in general by catching errors per cell
- handling standalone tags better (e.g. `<br>`)

/cc @maethu