C
Cortes
hi all,
I have a variable, let's call it xyz, as a string. I want xyz to be a string
which I copied from a website that has a lot of back slashes, forward
slashes, single quotes, double quotes....
var xyz = new String();
xyz = " This is a long long text with a lof of weird characters that need
escape character"
So in order to construct a proper xyz, one way I know is to use
concatenation and A LOT of
escape character.
My question therefore is:
Is there any way to get around this?
I know in PHP you have something like this (may syntactically wrong)
var xyz = <<< Orginal text >>>
Anyone have any idea please help me! I will appreciate any reply. Thanks
I have a variable, let's call it xyz, as a string. I want xyz to be a string
which I copied from a website that has a lot of back slashes, forward
slashes, single quotes, double quotes....
var xyz = new String();
xyz = " This is a long long text with a lof of weird characters that need
escape character"
So in order to construct a proper xyz, one way I know is to use
concatenation and A LOT of
escape character.
My question therefore is:
Is there any way to get around this?
I know in PHP you have something like this (may syntactically wrong)
var xyz = <<< Orginal text >>>
Anyone have any idea please help me! I will appreciate any reply. Thanks