Move the construction of the entries table into a partial
Make fragments html safe