]> git.0d.be Git - panikweb.git/blobdiff - panikweb/base/static/js/specifics.js
js: fix dynamic update of <title> when new title has ampersands (& more)
[panikweb.git] / panikweb / base / static / js / specifics.js
index 08f22e553fbf1d6e946b451f21aa0f16c0ecdf2a..7684721d44449e44d459461bf8e2b834fa77117f 100644 (file)
@@ -29,7 +29,7 @@ $(function() {
        /**** AJAX UTILITIES FOR REQUESTS ****/
        /****************************************************/
        String.prototype.decodeHTML = function() {
-               return $("<div>", {html: "" + this}).html();
+               return $("<div>", {html: "" + this}).text();
        };
        var loadPage_request = null;
        afterLoad = function(html, textStatus, XMLHttpRequest) {