Correct capitalization of H5P.htmlspecialchars function
parent
24be95a78e
commit
7e669884ce
|
@ -978,7 +978,7 @@ H5P.setFinished = function (contentId, points, maxPoints) {
|
|||
/**
|
||||
* 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, '"');
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue