From 3beaa8302a6fbe232388728d0823a1d26296f017 Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Wed, 14 Jan 2015 18:13:23 +0100 Subject: [PATCH] Remove H5P special chars --- js/h5p.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/js/h5p.js b/js/h5p.js index 249d2bd..8881b86 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -1303,13 +1303,6 @@ if (H5P.jQuery) { }); } - /** - * Mimics how php's htmlspecialchars works (the way we use it) - */ -H5P.htmlSpecialChars = function(string) { - return string.toString().replace(//g, '>').replace(/'/g, ''').replace(/"/g, '"'); -}; - H5P.deprecatedTrigger = function(instance, event) { if (instance.trigger !== undefined) { instance.trigger(event);