Package Exports
- postcss-escape-generated-content-string
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (postcss-escape-generated-content-string) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
postcss-escape-generated-content-string
PostCSS plugin for escaping strings in generated content.
Features:
- Handles every character (emojis included)
- Already escaped characters are left untouched
Install
npm install postcss postcss-escape-generated-content-string --save
Usage
import postcss from 'postcss';
import plugin from 'postcss-escape-generated-content-string';
postcss([plugin()]);
/* Before */
.becky {
content: 'becky 🐕';
}
/* After */
.becky {
content: '\0062\0065\0063\006b\0079\0020\1f415';
}
License
MIT © Ivan Nikolić