|
-
Sep 6th, 2001, 01:01 PM
#1
Thread Starter
Addicted Member
Concatinating Double Quotes
Just a quick simple question. How do you concatinate a the double quote into a javascript string.
var strOne = "*This is an actual quote from somebody*"
where * = double quotes.
-
Sep 6th, 2001, 01:04 PM
#2
Frenzied Member
you could do:
Code:
var strOne = '""This is an actual quote from somebody""'
-
Sep 6th, 2001, 02:24 PM
#3
Frenzied Member
Does JavaScript have an escape character?
Code:
var myString = "\"This is an actual \"quote\"\"";
If you alert myString it should give you...
"This is an actual "quote""
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Sep 6th, 2001, 02:56 PM
#4
Thread Starter
Addicted Member
thanks you two, I knew it was something simple like that. I just had a brain freeze
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|