"addslashes as it stands is useful for things other than javascript, which may not accept \\/, \\n; csv for example (see ???http://www.djangoproject.com/documentation/outputting_csv/ for a prominent example)." . . . .