In this first tutorial, i will show how to insert special characters within the title attribute of an anchor tag by the use of jQuery. I needed to do so a few weeks back in one of my projects and here comes the solution i came up with. This is a pretty special trick and you probably will not need it that soon, knowing that those characters can be inserted “by hand” directly into your html code. This deals with the idea that you cannot write it when coding the html, but rather have to insert it at some moment in the page by the use of jQuery. Hope that’s clear.
First of all, you will need to find the numeric entity for your character using a glyph table. There are tons out there ready to be used. Here is one on css-tricks.com. For example, we will be looking for the right angle quotation mark, better know as this:
». Using the table, we can see that its numeric value is
Fianlly it is just about inserting the character in the title attribute with something like this:
There might be other solutions but this is the one i found at the time. Hope it helps.
Extra tip: i frequently use copypastecharacter.com to quickly get some special characters i want to insert into some pages, emails and others.