Properly escape moderation state in template output

Change-Id: I594abc07eb8581d1babb84757997ec840afcc1d6
Merge "Properly escape moderation state in template output"