Issue #381:

- escape html in result strings in entities view
- also fixes bad html in table generation for both string and entities searches
- fix a wrong variable name causing a missing header in mobile display + a warning
- whitespace changes