Html – Adding HTML entities using CSS content


How do you use the CSS content property to add HTML entities?

Using something like this just prints   to the screen instead of the non-breaking space:

.breadcrumbs a:before {
  content: ' ';

Best Solution

You have to use the escaped unicode :


.breadcrumbs a:before {
  content: '\0000a0';

More info on :