Use CSS String Escaper / Unescaper without a complicated workflow.
Escape and unescape CSS string values for selectors, content values, and style snippets. This registration is prepared for a browser-side JavaScript UI, so no Python/API processing is required when the UI is implemented.