Templates have escaping as a default. The reason for marking it safe previously was that it had been rendered as a template (so it was already escaped) so there was no need to escape it again in the doc formatter.