I have some html where the star is simply in the code like so:
<strong>This is my ★ star, I'm not using entities!</strong>
It works in Firefox, but not in Chrome (which displays a box). Why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just to expand on Gil’s answer, the unicode character entity for star
★was not showing for me in Chrome, but it was in Firefox. I found that just as Gil says, it did work in Chrome when it was in the html at page load, but it did not work in Chrome when the html containing the star was loaded subsequently via ajax.Here’s how I fixed it: this doesn’t work…
… but this does – with the addition of the CSS
text-renderingdeclaration…For the record I’m using Bootstrap on this site.