Now grouping activities by header name

From now on, the activities are not grouped by single days but by
grouping string, like "Today", "Yesterday", "2 months ago", etc.
Now using sanitizeHTML() instead of htmlspecialchars