7
I’m trying to insert a special character into :before
of my links so that they stay in the following way:
This is the link
The problem is that this character is written in hexadecimal and when I try to put it in content:'➔'
instead of displaying the figure displays its hexadecimal value and looks like this:
➔ Esse é o link
Is there any CSS escape character?
Thanks @bfavaretto, this second example that you suggested became top, is that I did not want to use the literal character rs. How do you get the Unicode character code?
– Odair
The code you are using in HTML is in decimal, just convert to hexa. There are also tables and character lists with their codes, such as http://www.fileformat.info/info/unicode/char/a.htm
– bfavaretto
An important addition is to mention file encoding. From what I remember it must be saved in UTF-8 or another that supports the characters, or it will get messy.
– Emerson Rocha
Thanks @Emersonrochaluiz, updated.
– bfavaretto
No need to quote name in the post Ahahaha. It was just for the same. Nowadays almost everything is UTF8, but I’ve had problems with it and it was complicated until I saw that it was just that.
– Emerson Rocha
@Emersonrochaluiz I have this habit of quoting :) I also use everything in UTF-8 a few years ago, but maybe the author of the question doesn’t even use it.
– bfavaretto