Correct capitalization of H5P.htmlspecialchars function

namespaces
Pål Jørgensen 2014-09-23 13:01:39 +02:00
parent 24be95a78e
commit 7e669884ce
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) * 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;'); return string.toString().replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/'/g, '&#039;').replace(/"/g, '&quot;');
}; };