summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/templates/index.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/res/templates/index.html b/res/templates/index.html
index 86096023..e395cefd 100644
--- a/res/templates/index.html
+++ b/res/templates/index.html
@@ -19,6 +19,16 @@ var rz_config = { // set as a global variable
'separator_string': ' ',
};
+function unquote_xml(s) {
+ return s.replace('&', '&').replace(''', "'")
+ .replace('"', '"').replace('>', '>')
+ .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>