Wondering how to insert special characters and symbols inside generated CSS content? This article will show you how.
Insert special characters and symbols inside generated CSS content using their hex notation instead of the usual HTML entity notation. For example, ©
becomes \\00a9
:
Here’s another example:
.foo::before {
content: "An ellipsis\2026";
}
This is how you insert special characters and symbols into CSS.
For a more comprehensive review of the HTML5 markup language, explore our series, How To Build a Website in HTML.
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!