Trim anchor link in heading cells, fixes #6324

pull/37/head
Jessica B. Hamrick 12 years ago
parent 4495fa5246
commit d46606a48b

@ -418,7 +418,7 @@ define([
html = security.sanitize_html(html);
var h = $($.parseHTML(html));
// add id and linkback anchor
var hash = h.text().replace(/ /g, '-');
var hash = h.text().trim().replace(/ /g, '-');
h.attr('id', hash);
h.append(
$('<a/>')

Loading…
Cancel
Save