From 6479635717a1a3c6569b70846532dbbc8f05edd2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kim=20Nguy=E1=BB=85n?= Date: Wed, 23 Sep 2015 18:17:01 +0200 Subject: [PATCH] Fix titles with & inside. --- simpleWebSlides.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/simpleWebSlides.js b/simpleWebSlides.js index ce50c94..23f08a2 100644 --- a/simpleWebSlides.js +++ b/simpleWebSlides.js @@ -550,7 +550,12 @@ SWS.Presentation = new function () { var loop = function (doc, dir, add, ignoreFirst) { if (ignoreFirst !== true) { - var this_toc = { 'title' : doc.find("title").first().text(), + var this_toc = { 'title' : doc.find("title").first().text() + .replace ("&", "&") + .replace("'","'") + .replace('"', """) + .replace("<", "<") + .replace(">", ">"), 'sections' : build_sections(doc) }; add(toc, this_toc); }; -- 2.17.1