Skip to content

Commit

Permalink
Merge pull request danvk#308 from yankee42/fixXmlEntities
Browse files Browse the repository at this point in the history
Replace ' ' with '&danvk#160;', so that the legend works in XHTML pages
  • Loading branch information
danvk committed Aug 21, 2014
2 parents 88bbada + 19eba23 commit d037a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ generateLegendHTML = function(g, x, sel_points, oneEmWidth) {

// TODO(danvk): use a template string here and make it an attribute.
html += "<span" + cls + ">" + " <b><span style='color: " + series.color + ";'>" +
escapeHTML(pt.name) + "</span></b>:&nbsp;" + yval + "</span>";
escapeHTML(pt.name) + "</span></b>:&#160;" + yval + "</span>";
}
return html;
};
Expand Down

0 comments on commit d037a49

Please sign in to comment.