Revert "Add htmlSpecialChars"

This reverts commit 41ed0c18e4.
namespaces Drupal-7.x-1.0-beta11
Svein-Tore Griff With 2014-11-03 10:15:23 +01:00
parent a61744b20a
commit 57db1d9926
2 changed files with 1 additions and 8 deletions

View File

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

View File

@ -1099,10 +1099,3 @@ 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;');
};