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

namespaces
Pål Jørgensen 2014-09-23 13:01:59 +02:00
commit 687fd8ddbc
1 changed files with 1 additions and 1 deletions

View File

@ -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, '&lt;').replace(/>/g, '&gt;').replace(/'/g, '&#039;').replace(/"/g, '&quot;');
};