From 7e669884cee4e295b84e99941111ab498b7c12e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20J=C3=B8rgensen?= Date: Tue, 23 Sep 2014 13:01:39 +0200 Subject: [PATCH] Correct capitalization of H5P.htmlspecialchars function --- js/h5p.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/h5p.js b/js/h5p.js index 0500cc9..73f833a 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, '"'); };