Revert "Merge branch 'adding-htmlspecialchars-to-h5p' into without-pal"
This reverts commitnamespaces687fd8ddbc
, reversing changes made toab1b691a27
.
parent
909fb3aca3
commit
1236eb5fd1
|
@ -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