Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 424 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 424 Bytes

#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