I am using D3.js to append a text element to an SVG group element as follows:
d3.select('#legend').append('text')
.attr('x', 10)
.attr('class', 'remove-country')
.attr('y', 10)
.attr('font-size', '15px')
.attr('font-weight', 'bold')
.attr('fill', '#555')
.style('cursor', 'pointer')
.html('☓')
Here, '#legend' is a group element. The ☓ is unicode used to print a cross symbol in html. Reference:
http://www.w3schools.com/charsets/ref_utf_misc_symbols.asp
The problem is that this cross symbol is rendering fine on Chrome but doesn't seem to work on Safari. Any different way in which I can show a cross symbol?