[thelist] quote in variable

Brian Cummiskey brian at hondaswap.com
Mon May 14 13:07:07 CDT 2007


Will Budreau wrote:
> http://www.c-point.com/javascript_tutorial/special_characters.htm
>
>
>   
>> var answer = window.confirm("Would you like to delete the publication
>> " + the_publication + "; #" + ticket_num + "?");
>>     
specifically, you'd want to run a replace function in something like this:


var str= the_publication;
str.replace("'", "\'");

var answer = window.confirm("Would you like to delete the publication
" + str + "; #" + ticket_num + "?");





More information about the thelist mailing list