Skip to content

Commit

Permalink
[bugfix,js][xs]: make sure we do *not* genshi HTML escape json packag…
Browse files Browse the repository at this point in the history
…e and resource data we are inserting into pages (dataset edit and resource read).

* Had run into this via an odd bug whereby a resource url that was an html page was not previewing and reason was & had been converted to &
  • Loading branch information
rufuspollock committed Feb 15, 2012
1 parent 91e9a2d commit d59cd9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckan/templates/package/edit.html
Expand Up @@ -10,7 +10,7 @@

<py:def function="optional_head">
<script>
var preload_dataset = ${c.pkg_json};
var preload_dataset = ${h.literal(c.pkg_json)};
</script>
</py:def>

Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/package/resource_read.html
Expand Up @@ -17,7 +17,7 @@
<link rel="stylesheet" href="${h.url_for('/scripts/vendor/recline/css/graph-flot.css')}" />
<!-- /data preview -->
<script type="text/javascript">
var preload_resource = ${c.resource_json};
var preload_resource = ${h.literal(c.resource_json)};
</script>
</py:def>

Expand Down

0 comments on commit d59cd9c

Please sign in to comment.