Closed hanifaudah closed 1 year ago
The string literal '\\'
represents string \
in JavaScript. So '\{{escaped}}'
becomes {{escaped}}
(escape miss) and '\\{{escaped}}'
becomes \{{escaped}}
.
Try:
console.log(`\{{escaped}}`) // {{escaped}}
console.log(`\\{{escaped}}`) // \{{escaped}}
If you're not familiar with JavaScript:
The string literal
'\\'
represents string\
in JavaScript. So'\{{escaped}}'
becomes{{escaped}}
(escape miss) and'\\{{escaped}}'
becomes\{{escaped}}
.Try:
console.log(`\{{escaped}}`) // {{escaped}} console.log(`\\{{escaped}}`) // \{{escaped}}
If you're not familiar with JavaScript:
I see, thanks for the feedback.
Hi, I found that using single back slashes don't work anymore for version
4.7.7
. Double slashes work to escape the characters.Sample code I used to prove this: