Revert "Merge branch 'adding-htmlspecialchars-to-h5p' into without-pal"

This reverts commit 9f19f64bab, reversing
changes made to 38c98202f4.
namespaces
Frode Petterson 2014-09-24 15:35:47 +02:00
parent 4b8804988e
commit 3442954971
1 changed files with 0 additions and 7 deletions

View File

@ -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, '&lt;').replace(/>/g, '&gt;').replace(/'/g, '&#039;').replace(/"/g, '&quot;');
};
// Add indexOf to browsers that lack them. (IEs) // Add indexOf to browsers that lack them. (IEs)
if (!Array.prototype.indexOf) { if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function (needle) { Array.prototype.indexOf = function (needle) {