         helpers.logVerbose 'match 7', attrName: attrName, attrVal: attrVal
         updated = true
         hrefStr = """href="{{urlPath}}?action=#{encodeURIComponent attrVal}" """
-        anchorStr = escapeBraces """<a #{hrefStr} data-ng-#{escapeCurlyBraces hrefStr}"""
+        anchorStr = escapeBraces """<a #{hrefStr} data-ng-#{htmlEscapeCurlyBraces hrefStr}"""
 
         index = interpolated.indexOf match
         beforeStr = interpolated.substr 0, index

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

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



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

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