From 9ae9d91a900dc6cfcd69804a07bade93085d2ed1 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Tue, 2 Jun 2015 11:06:23 -0400 Subject: [PATCH] Treat help doc titles as html instead of text (closes #2674) --- js/id/ui/help.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/id/ui/help.js b/js/id/ui/help.js index d7ec5799d..3ce938746 100644 --- a/js/id/ui/help.js +++ b/js/id/ui/help.js @@ -61,7 +61,7 @@ iD.ui.Help = function(context) { function clickHelp(d, i) { pane.property('scrollTop', 0); - doctitle.text(d.title); + doctitle.html(d.title); body.html(d.html); body.selectAll('a') .attr('target', '_blank'); @@ -78,7 +78,7 @@ iD.ui.Help = function(context) { clickHelp(docs[i - 1], i - 1); }); prevLink.append('span').attr('class', 'icon back blue'); - prevLink.append('span').text(docs[i - 1].title); + prevLink.append('span').html(docs[i - 1].title); } if (i < docs.length - 1) { var nextLink = nav.append('a') @@ -121,7 +121,7 @@ iD.ui.Help = function(context) { .enter() .append('li') .append('a') - .text(function(d) { return d.title; }) + .html(function(d) { return d.title; }) .on('click', clickHelp); toc.append('li')