refs #4179 use a twig filter to generate html for notification so it is reusable