A Sass function that will output properly encoded entities.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scss
.editorconfig
.gitignore
README.md
sache.json

README.md

#Entity

A Sass function that will output properly encoded entities.

##Usage The entity function accepts the actual character, the HTML name without the ampersand and semi-colon or the decimal number.

body {
  &:after {
    content: entity('€');
  }
}

or

body {
  &:after {
    content: entity('euro');
  }
}

will output

body:after {
  content: "\20AC";
}

Requirements

  • Sass ~> 3.3.0