Make sure components of a tag are html safe.