Karl: Quotes und Double-Quotes escapen

Hallo,

wie kann ich in Javascript Qoutes und Double-Qoutes escapen?

Gruß
Karl

  1. Hi!

    wie kann ich in Javascript Qoutes und Double-Qoutes escapen?

    Mit einem Backslash ().

    Grüße,
    Fabian St.

    --
    ---------------------
    fabi@erde ~# whatis spam
    spam: nothing appropriate
    ---------------------
    Selfcode: ie:{ fl:( br:> va:) ls:[ fo:) rl:( n4:( ss:) de:> js:| ch:? mo:) zu:)
    1. Hallo,

      Entschuldigung für die Schlechte Frage

      wie kann ich in Javascript Qoutes und Double-Qoutes mit einer Funktion escapen?

      Gruß
      Karl

      1. Hallo Karl.

        wie kann ich in Javascript Qoutes und Double-Qoutes mit einer Funktion escapen?

        Am Besten mit der Stringfunktion replace().

        Gruß, Ashura

        --
        Selfcode: sh:( fo:) ch:? rl:( br:^ n4:& ie:{ mo:) va:) de:> zu:) fl:( ss:| ls:[ js:|
        Try it: Become an Opera Lover in 30 days
        Meine Browser: Opera 8.0 | Firefox 1.0.4 | Lynx 2.8.3 | Netscape 4.7 | IE 6.0
        IE Layout-Workaround №1: <!--[if IE]><style type="text/css">*{display:none;}</style><![endif]-->