Use the raw
property of tagged template strings like so s.raw
- the
raw
property accesses the string as it was entered raw
can access the backslash of a line-break
String.raw
as a static function
- concats the raw strings
- two raw-templates-string-backslashes equal two escaped backslashes
- works on unicodes too
Links
Description of `raw` property of tagged template strings.
Describing the raw behavior.