Sanitize content field for certain record types.

Change-Id: I0c4b3e73ce740291bb1530a4d6feb3433cd6ab39