templates: add slugs, unescape html