@mathias You wouldn't happen to have already created a css string literal escaper for putting arbitrary text in a css content property?
@_munter_ I have: https://mothereff.in/css-escapes
Stand-alone lib: https://mths.be/cssesc
`CSS.escape` polyfill:https://mths.be/cssescape
-
-
@mathias I'll have a look and see if I can pull out some of this home brew: https://github.com/Munter/csserror/blob/master/index.js … -
@_munter_ const createCssStringLiteral = x => `"${CSS.escape(x)}"`;
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.