Add custom template filters to be able to beautify report display

Still having some issues with git, hope you will be ok to accept this patch.
This patch adds the function then a second patch will follow to update the html template files