Merge branch 'master' of github.com:h5p/h5p-php-library

namespaces
Frode Petterson 2014-11-02 17:59:37 +01:00
commit e39e6ad136
2 changed files with 8 additions and 1 deletions

View File

@ -1526,7 +1526,7 @@ class H5PCore {
public static $coreApi = array(
'majorVersion' => 1,
'minorVersion' => 3
'minorVersion' => 4
);
public static $styles = array(
'styles/h5p.css',

View File

@ -1099,3 +1099,10 @@ if (H5P.jQuery) {
}
});
}
/**
* Mimics how php's htmlspecialchars works (the way we use it)
*/
H5P.htmlSpecialChars = function(string) {
return string.toString().replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/'/g, '&#039;').replace(/"/g, '&quot;');
};