JavaScript Coder

javascript escape quotes in string

How to escape double qoutes in a string

There are many different ways to escape quotes in a string. This article will show each one. Escaping string literals If you just want to escape string literals, here are the ways to do it. There are at least three ways to create a string literal in Javascript - using single quotes, double quotes, or the backtick ( ). So, if you enclose your string in single quotes, no need to escape double quotes and vis versa.

Continue Reading →