From 3442954971184ae51e3a26026f6289d41d268720 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Wed, 24 Sep 2014 15:35:47 +0200 Subject: [PATCH] Revert "Merge branch 'adding-htmlspecialchars-to-h5p' into without-pal" This reverts commit 9f19f64baba068aee25ec2894017eb5f5e2fd733, reversing changes made to 38c98202f48ac371d1c7ca5c81a810bd2221c44f. --- js/h5p.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/js/h5p.js b/js/h5p.js index 0500cc9..3b5db69 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -975,13 +975,6 @@ H5P.setFinished = function (contentId, points, maxPoints) { } }; -/** - * Mimics how php's htmlspecialchars works (the way we use it) - */ -H5P.htmlspecialchars = function(string) { - return string.toString().replace(//g, '>').replace(/'/g, ''').replace(/"/g, '"'); -}; - // Add indexOf to browsers that lack them. (IEs) if (!Array.prototype.indexOf) { Array.prototype.indexOf = function (needle) {