Skip to content
Discussion options

You must be logged in to vote

As per the documentation, you should use String.raw() in JavaScript to avoid backslashes being interpreted:

<div className={String.raw`after:content-['\a0_·_']`}/>{/* class="after:content-['\a0_·_']" */}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jeremy-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #19589 on January 22, 2026 08:04.