diff --git a/www/media/idf/js/wiki-toc.js b/www/media/idf/js/wiki-toc.js index e7e8e3d..8b17b7a 100644 --- a/www/media/idf/js/wiki-toc.js +++ b/www/media/idf/js/wiki-toc.js @@ -1,7 +1,7 @@ $(document).ready(function() { $(":header", "#wiki-content").map(function (index) { this.id = "wikititle_" + index; - $("" + this.innerText + "").addClass("wiki-" + this.tagName.toLowerCase()).appendTo('#wiki-toc-content'); + $("" + jQuery.fn.text([this]) + "").addClass("wiki-" + this.tagName.toLowerCase()).appendTo('#wiki-toc-content'); }); });