escapeClassName.js 255 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 import parser from 'postcss-selector-parser' import escapeCommas from './escapeCommas' export default function escapeClassName(className) { let node = parser.className() node.value = className return escapeCommas(node?.raws?.value ?? node.value) }