0.0.6 • Published 4 years ago
html-style v0.0.6
html-style
将 css 样式应用到 html 行内样式。
Usage
const transform = require("html-style");
transform('<div>hello</div>', 'div {color: red}');
// output <div style="color: red;">hello</div>
将 css 样式应用到 html 行内样式。
const transform = require("html-style");
transform('<div>hello</div>', 'div {color: red}');
// output <div style="color: red;">hello</div>