Skip to content

jeremy-green/entity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

A Sass function that will output properly encoded entities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages