[thelist] quote in variable

Daniel Kessler danielk at umd.edu
Mon May 14 12:20:45 CDT 2007

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

> http://www.htmlgoodies.com/beyond/javascript/article.php/3470891

That's great and all, but the reason that I asked is that I don't  
know what text will be in the variable the_publication.  It's user- 
entered, so difficult to escape.
Is there no function used in this case?


Daniel Kessler

College of Health and Human Performance
University of Maryland
Suite 2387 Valley Drive
College Park, MD  20742-2611
Phone: 301-405-2545

More information about the thelist mailing list