In handlebars, escapes like \n or \u1234 don't have any special meaning. If you use them in an .hbs file, they render as written. But if you convert that .hbs file to a template-tag, they are inserted directly into a Javascript string literal (or template literal) where they get interpreted, changing the rendered output.
This is not a bug unique to content-tag, the earlier ember-template-imports implementation also suffers this.
In handlebars, escapes like
\n
or\u1234
don't have any special meaning. If you use them in an .hbs file, they render as written. But if you convert that .hbs file to a template-tag, they are inserted directly into a Javascript string literal (or template literal) where they get interpreted, changing the rendered output.This is not a bug unique to content-tag, the earlier ember-template-imports implementation also suffers this.