You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.
Is it possible to have multiline js style comments (/*... */) in the string? One convoluted use case is having commented CDATA blocks in one's svg markup for css styles.
This ended up being much easier to handle using a template engine (swig in my case) than trying to twist multiline into something it's not. I went back to using multiline for what it does best, making multiple line Javascript strings that are pleasant to look at and work with.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is it possible to have multiline js style comments (
/*... */
) in the string? One convoluted use case is having commented CDATA blocks in one's svg markup for css styles.That just generates an expected
SyntaxError: Unexpected token <
error and non of the escaping i've tried seems to generate the desired comments.I can skip the CDATA blocks or put the styles in my separate stylesheets rather than the tag, so this is not blocking, but I was curious about it.
The text was updated successfully, but these errors were encountered: