Update cover template helpers, fix escaping