Revert "Merge branch 'adding-htmlspecialchars-to-h5p' into without-pal"
This reverts commitnamespaces9f19f64bab
, reversing changes made to38c98202f4
.
parent
4b8804988e
commit
3442954971
|
@ -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, ''').replace(/"/g, '"');
|
||||
};
|
||||
|
||||
// Add indexOf to browsers that lack them. (IEs)
|
||||
if (!Array.prototype.indexOf) {
|
||||
Array.prototype.indexOf = function (needle) {
|
||||
|
|
Loading…
Reference in New Issue