Escaping badge attributes in partial