Results 1 to 4 of 4

Thread: Concatinating Double Quotes

  1. #1

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236

    Cool 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.

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    you could do:

    Code:
    var strOne = '""This is an actual quote from somebody""'

  3. #3
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    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.

  4. #4

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    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
  •  



Click Here to Expand Forum to Full Width