diff --git a/src/public/app/widgets/toc.js b/src/public/app/widgets/toc.js index f8f7a2352..9d7105f22 100644 --- a/src/public/app/widgets/toc.js +++ b/src/public/app/widgets/toc.js @@ -143,7 +143,9 @@ export default class TocWidget extends CollapsibleWidget { // // Create the list item and set up the click callback // - const $li = $('
  • ' + m[2] + '
  • '); + + const headingText = $("
    ").html(m[2]).text(); + const $li = $('
  • ').text(headingText); // XXX Do this with CSS? How to inject CSS in doRender? $li.hover(function () { $(this).css("font-weight", "bold");