fixed problem where links wouldn't be clickable

This commit is contained in:
Jeena Paradies 2012-11-22 11:34:26 +01:00
parent 201b0a46ba
commit d39b643844

View file

@ -55,18 +55,15 @@ String.prototype.endsWith = function(suffix) {
return this.match(suffix+"$") == suffix;
};
var entityMap = {
var __entityMap = {
"&": "&",
"<": "&lt;",
">": "&gt;",
'"': '&quot;',
"'": '&#39;',
"/": '&#x2F;'
">": "&gt;"
};
String.prototype.escapeHTML = function() {
return String(this).replace(/[&<>"'\/]/g, function (s) {
return entityMap[s];
return String(this).replace(/[&<>]/g, function (s) {
return __entityMap[s];
});
}
@ -108,11 +105,18 @@ var console = {
}
};
function loadPlugin(url) {
function loadPlugin(js_url, css_url) {
if (js_url) {
}
var plugin = document.createElement("script");
plugin.type = "text/javascript";
plugin.src = url;
plugin.src = js_url;
document.getElementsByTagName("head")[0].appendChild(plugin);
if (css_url != null) {
}
}
function debug(string) {