Fix reversed dates

This commit is contained in:
Chalarangelo
2021-12-15 19:32:45 +02:00
parent 740906fc96
commit c01b950eee
2 changed files with 4 additions and 4 deletions

View File

@ -5,8 +5,8 @@ tags: javascript,string
authors: chalarangelo
cover: blog_images/glass-blowing.jpg
excerpt: Strings in JavaScript can be escaped in various ways. But what if you need to prevent a string from being escaped? Here's a handy trick for that.
firstSeen: 2021-06-17T12:00:00+03:00
lastUpdated: 2021-06-12T19:30:41+03:00
firstSeen: 2021-06-12T19:30:41+03:00
lastUpdated: 2021-06-17T12:00:00+03:00
---
By default, when JavaScript sees an escape character (`\`), it will escape the character after it. However, there are cases where you might not want this behavior (e.g. when you want to store a Windows path as a string). For these cases, you can use a template literal and the `String.raw()` tag function: