Commit 25720142 authored by jonnybradley's avatar jonnybradley

[MRG] Automatic merge, branches/20.x 70211 to 70215

parents eecf0afe 68dcd093
Pipeline #66674764 failed with stages
in 29 minutes and 9 seconds
......@@ -59,8 +59,8 @@ $.buildAutoToc = function () {
var $this = $(this);
headerLevel = parseInt($this.prop("tagName").substring(1));
//grab the whole header element to show as the anchor text
var aText = $.trim($this.text());
//grab the whole header element to show as the anchor text (stripping the html tags)
var aText = $.trim($this.html().replace(/(<([^>]+)>)/ig,""));
//generate and set id if necessary (if element does not already have an id, create one)
var id = $this.attr("id");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment