Use raw instead of html_safe in layout

It's easier to handle when generating templates for other targets