def METHOD_NAME(self, string, attributes=[]):
    # Optimized tag writer for rich inlineStr in the inner loop.
    attr = ''
    for key, value in attributes:
        value = self._escape_attributes(value)
        attr += ' %s="%s"' % (key, value)
    self.fh.write("""<c%s t="inlineStr"><is>%s</is></c>""" %
                  (attr, string))