From 1236eb5fd11f344d15fd6aa0c80bc97ab314e1f1 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Wed, 24 Sep 2014 15:34:34 +0200 Subject: [PATCH] Revert "Merge branch 'adding-htmlspecialchars-to-h5p' into without-pal" This reverts commit 687fd8ddbc256c1e8c5f3714f561c06b3c31fee1, reversing changes made to ab1b691a27aadfc4b6a9798ca09bd2ff661f2f2f. --- js/h5p.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/h5p.js b/js/h5p.js index 73f833a..0500cc9 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -978,7 +978,7 @@ H5P.setFinished = function (contentId, points, maxPoints) { /** * Mimics how php's htmlspecialchars works (the way we use it) */ -H5P.htmlSpecialChars = function(string) { +H5P.htmlspecialchars = function(string) { return string.toString().replace(//g, '>').replace(/'/g, ''').replace(/"/g, '"'); };