 selfClosingTags = 'area, base, br, col, command, embed, hr, img, input,
   keygen, link, meta, param, source, track, wbr'.split /,\s*/
 
-escapeCurlyBraces = (str) ->
+htmlEscapeCurlyBraces = (str) ->
   str
     .replace(/\{/g, '&#123;')
     .replace(/\}/g, '&#125;')

      #   helpers.logVerbose 'match 4'
      #   updated = true

      #   escapedMatch = escapeCurlyBraces( match
      #     .replace(/\{\{/g, "{{expression '")
      #     .replace(/\}\}/g, "'}}")
      #   )

              match.replace /\[|\]/g, '.'

          trimmedMatch = trimmedMatch.replace attrVal, escapeBraces newAttrVal
          """#{trimmedMatch} data-ng-attr-#{attrName}="#{htmlEscapeCurlyBraces attrVal}">"""
      )


