diff --git a/koha-tmpl/intranet-tmpl/lib/jsdiff/jsdiff.js b/koha-tmpl/intranet-tmpl/lib/jsdiff/jsdiff.js
index 3e3cc47c23..4df57d4eeb 100644
--- a/koha-tmpl/intranet-tmpl/lib/jsdiff/jsdiff.js
+++ b/koha-tmpl/intranet-tmpl/lib/jsdiff/jsdiff.js
@@ -59,7 +59,7 @@ function diffString( o, n ) {
for (n = out.n[i].row + 1; n < out.o.length && out.o[n].text == null; n++ ) {
pre += '' + escape(out.o[n]) + oSpace[n] + "";
}
- str += " " + out.n[i].text + nSpace[i] + pre;
+ str += " " + escape(out.n[i].text) + nSpace[i] + pre;
}
}
}
diff --git a/koha-tmpl/intranet-tmpl/lib/jsdiff/jsdiff.min.js b/koha-tmpl/intranet-tmpl/lib/jsdiff/jsdiff.min.js
index 9420f1a67c..f2a45290d5 100644
--- a/koha-tmpl/intranet-tmpl/lib/jsdiff/jsdiff.min.js
+++ b/koha-tmpl/intranet-tmpl/lib/jsdiff/jsdiff.min.js
@@ -7,4 +7,4 @@
*
* More Info:
* http://ejohn.org/projects/javascript-diff-algorithm/
- */function escape(a){var b=a;return b=b.replace(/&/g,"&"),b=b.replace(//g,">"),b=b.replace(/"/g,"""),b}function diffString(a,b){a=a.replace(/\s+$/,""),b=b.replace(/\s+$/,"");var c=diff(a==""?[]:a.split(/\s+/),b==""?[]:b.split(/\s+/)),d="",e=a.match(/\s+/g);e==null?e=["\n"]:e.push("\n");var f=b.match(/\s+/g);f==null?f=["\n"]:f.push("\n");if(c.n.length==0)for(var g=0;g"+escape(c.o[g])+e[g]+"";else{if(c.n[0].text==null)for(b=0;b"+escape(c.o[b])+e[b]+"";for(var g=0;g"+escape(c.n[g])+f[g]+"";else{var h="";for(b=c.n[g].row+1;b"+escape(c.o[b])+e[b]+"";d+=" "+c.n[g].text+f[g]+h}}return d}function randomColor(){return"rgb("+Math.random()*100+"%, "+Math.random()*100+"%, "+Math.random()*100+"%)"}function diffString2(a,b){a=a.replace(/\s+$/,""),b=b.replace(/\s+$/,"");var c=diff(a==""?[]:a.split(/\s+/),b==""?[]:b.split(/\s+/)),d=a.match(/\s+/g);d==null?d=["\n"]:d.push("\n");var e=b.match(/\s+/g);e==null?e=["\n"]:e.push("\n");var f="",g=new Array;for(var h=0;h'+escape(c.o[h].text)+d[h]+"":f+=""+escape(c.o[h])+d[h]+"";var i="";for(var h=0;h'+escape(c.n[h].text)+e[h]+"":i+=""+escape(c.n[h])+e[h]+"";return{o:f,n:i}}function diff(a,b){var c=new Object,d=new Object;for(var e=0;e0;e--)b[e].text!=null&&b[e-1].text==null&&b[e].row>0&&a[b[e].row-1].text==null&&b[e-1]==a[b[e].row-1]&&(b[e-1]={text:b[e-1],row:b[e].row-1},a[b[e].row-1]={text:a[b[e].row-1],row:e-1});return{o:a,n:b}};
\ No newline at end of file
+ */function escape(a){var b=a;return b=b.replace(/&/g,"&"),b=b.replace(//g,">"),b=b.replace(/"/g,"""),b}function diffString(a,b){a=a.replace(/\s+$/,""),b=b.replace(/\s+$/,"");var c=diff(a==""?[]:a.split(/\s+/),b==""?[]:b.split(/\s+/)),d="",e=a.match(/\s+/g);e==null?e=["\n"]:e.push("\n");var f=b.match(/\s+/g);f==null?f=["\n"]:f.push("\n");if(c.n.length==0)for(var g=0;g"+escape(c.o[g])+e[g]+"";else{if(c.n[0].text==null)for(b=0;b"+escape(c.o[b])+e[b]+"";for(var g=0;g"+escape(c.n[g])+f[g]+"";else{var h="";for(b=c.n[g].row+1;b"+escape(c.o[b])+e[b]+"";d+=" "+escape(c.n[g].text)+f[g]+h}}return d}function randomColor(){return"rgb("+Math.random()*100+"%, "+Math.random()*100+"%, "+Math.random()*100+"%)"}function diffString2(a,b){a=a.replace(/\s+$/,""),b=b.replace(/\s+$/,"");var c=diff(a==""?[]:a.split(/\s+/),b==""?[]:b.split(/\s+/)),d=a.match(/\s+/g);d==null?d=["\n"]:d.push("\n");var e=b.match(/\s+/g);e==null?e=["\n"]:e.push("\n");var f="",g=new Array;for(var h=0;h'+escape(c.o[h].text)+d[h]+"":f+=""+escape(c.o[h])+d[h]+"";var i="";for(var h=0;h'+escape(c.n[h].text)+e[h]+"":i+=""+escape(c.n[h])+e[h]+"";return{o:f,n:i}}function diff(a,b){var c=new Object,d=new Object;for(var e=0;e0;e--)b[e].text!=null&&b[e-1].text==null&&b[e].row>0&&a[b[e].row-1].text==null&&b[e-1]==a[b[e].row-1]&&(b[e-1]={text:b[e-1],row:b[e].row-1},a[b[e].row-1]={text:a[b[e].row-1],row:e-1});return{o:a,n:b}};