Yep '"$escaped"' would be fine.

On 04/23/2014 07:34 PM, Victor Savkin wrote:
>
> In lib/core/interpolate.dart:
>
> > @@ -49,7 +49,7 @@ class Interpolate implements Function {
> >          if (index < startIdx) {
> >            // Empty strings could be stripped thanks to the stringify
> >            // formatter
> > -          expParts.add('"${template.substring(index, startIdx)}"');
> > +          expParts.add('"${_escapeQuotes(template.substring(index, startIdx))}"');
>
> Are you suggesting?
>
> String _wrapInQuotes(String s){
> final escaped = s.replaceAll(r'\', r'\').replaceAll(r'"', r'\"');
> return '"${escaped}"';
> }
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/angular/angular.dart/pull/944/files#r11912639>.
>