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
This block should be aligned like the other 2 (2 less spaces), all the rest looks good.