summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-04-09 01:55:37 +0300
committerLV-426 <lv-426@taproot.org.il>2015-04-09 02:03:46 +0300
commit913b04022b3cd929f4b5fe4ec83f04821a428430 (patch)
tree01ae14e3ce69d195a678ebe1cf958c3bee7f267c /res
parentf9dcd64ecf6e1ad534bcbcc48b9b9e3526db49ab (diff)
resolve #439 with safe filter (|safe), avoid extra code in index.html
Diffstat (limited to 'res')
-rw-r--r--res/templates/index.html12
1 files changed, 1 insertions, 11 deletions
diff --git a/res/templates/index.html b/res/templates/index.html
index e395cefd..faaee89e 100644
--- a/res/templates/index.html
+++ b/res/templates/index.html
@@ -12,23 +12,13 @@ var rz_config = { // set as a global variable
'node_edge_separator': true,
'optimized_main': {{ rz_config__optimized_main }},
'rand_id_generator' : 'hash',
- 'rzdoc_cur__name': '{{ rz_config__rzdoc_cur__name }}',
+ 'rzdoc_cur__name': "{{ rz_config__rzdoc_cur__name|safe }}",
'rzdoc_default__name': '{{ rz_config__rzdoc_default__name }}',
'rz_server_host': '{{ rz_config__hostname }}',
'rz_server_port': '{{ rz_config__port }}',
'separator_string': ' ',
};
-function unquote_xml(s) {
- return s.replace('&amp;', '&').replace('&apos;', "'")
- .replace('&quot;', '"').replace('&gt;', '>')
- .replace('&lt;', '<').replace(/&#(..);/g, function (_, d) {
- return String.fromCharCode(d); }
- );
-}
-
-rz_config.rzdoc_cur__name = unquote_xml(rz_config.rzdoc_cur__name);
-
var RZ_VERSION = '{% include "fragment/version.txt" %}';
</script>
<script data-main='/static/app.js' src="/static/lib/require.js"></script>