From ef2a8467e8037708b7eb0fad165237317bb1329f Mon Sep 17 00:00:00 2001 From: Rocky Duan Date: Tue, 17 Jul 2012 17:00:36 -0400 Subject: [PATCH] fix potential tags -- browsers handle this as end # of script, even if it occurs mid-string. Do this after json.dumps()ing # so that we can be sure of the quotations being used - params = {'items': json.dumps(contents).replace('', '<"+"/script>'), + import re + params = {'items': re.sub(r'