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

This reverts commit 687fd8ddbc, reversing
changes made to ab1b691a27.
namespaces
Frode Petterson 2014-09-24 15:34:34 +02:00
parent 909fb3aca3
commit 1236eb5fd1
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;');
}; };