Merge branch 'adding-htmlspecialchars-to-h5p' into without-pal
commit
687fd8ddbc
|
@ -978,7 +978,7 @@ H5P.setFinished = function (contentId, points, maxPoints) {
|
||||||
/**
|
/**
|
||||||
* Mimics how php's htmlspecialchars works (the way we use it)
|
* 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, ''').replace(/"/g, '"');
|
return string.toString().replace(/</g, '<').replace(/>/g, '>').replace(/'/g, ''').replace(/"/g, '"');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue