hi,
Dabei habe ich auch das Problem, dass ich doppelte Anfühurngszeichen durch einfache ersetzen muss. Wie schreibt man das?
replace(/"/,"'") geht nämlich nicht.
Doch, sollte so funktionieren - aber nur für das erste " im Text.
Wenn du alle haben willst, verwende noch den Modifier g:
alert('"hallo"'.replace(/"/g, "'"));
gibt bei mir 'hallo' aus, wie gewünscht.
gruß,
wahsaga
--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }