From af4620d58174b052b76fe6d53b68f15644703d97 Mon Sep 17 00:00:00 2001 From: zalun Date: Wed, 24 Feb 2010 04:37:56 +0000 Subject: [PATCH] escaping for js --- flightdeck/jetpack/templates/jetpack_edit.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flightdeck/jetpack/templates/jetpack_edit.html b/flightdeck/jetpack/templates/jetpack_edit.html index 9eb33853..386ed83f 100644 --- a/flightdeck/jetpack/templates/jetpack_edit.html +++ b/flightdeck/jetpack/templates/jetpack_edit.html @@ -11,7 +11,7 @@ item = new Jetpack({ slug: '{{ jetpack.slug }}', name: '{{ jetpack.name }}', - description: '{{ jetpack.description }}', + description: '{{ jetpack.description|escapejs }}', creator: '{{ jetpack.creator }}', edit_url: '{{ jetpack.get_absolute_url }}', update_url: '{{ jetpack.get_update_url }}', @@ -20,9 +20,9 @@ version: { author: '{{ version.author }}', name: '{{ version.name }}', - manifest: '{{ version.manifest }}', - content: '{{ version.content }}', - description: '{{ version.description }}', + manifest: '{{ version.manifest|escapejs }}', + content: '{{ version.content|escapejs }}, + description: '{{ version.description|escapejs }}', is_base: {{ version.is_base|yesno:"true,false" }}, edit_url: '{{ version.get_absolute_url }}', update_url: '{{ version.get_update_url }}',