How to concat special characters as sting to a text in javascript? -


how concat character \ string text in javascript? want write code line in javascript:

var x = "$$\" + $("#formul").val() + "$$"; 

how this?

escape backslash:

var x = "$$\\" + $("#formul").val() + "$$"; 

the problem have backslash escape character. escapes following " character string doesn't close.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -