is a workaround or any other ways to make this work on Sass 3.4 +
@mixin icon ($name, $code) { .#{$name}::before { content: str-slice("\x",1,1) + $code;} } @include icon('test', 4556);
The code should output
.test :: before {content: "\ 4556"; }
But at 3.4+, the snapshot \ is deleted and displayed as
.test :: before {content: "x4556"; }
thanks
sass compass
user3507442
source share