projects
/
hacks
/
simpleWebSlides.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
564cbcc
)
Fix titles with & inside.
author
Kim Nguyễn
<kn@lri.fr>
Wed, 23 Sep 2015 16:17:01 +0000
(18:17 +0200)
committer
Kim Nguyễn
<kn@lri.fr>
Wed, 23 Sep 2015 16:17:01 +0000
(18:17 +0200)
simpleWebSlides.js
patch
|
blob
|
history
diff --git
a/simpleWebSlides.js
b/simpleWebSlides.js
index
ce50c94
..
23f08a2
100644
(file)
--- 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);
};