@mathias how hard would it be to have a swap quote function that is correct?
LGTM too, but keep in mind you’ll want to strip equivalent escapes too: https://twitter.com/mathias/status/822523583008276482 …https://twitter.com/mathias/status/822523611240165377 …
-
-
Would you? If user inserted them as non-standard escape, perhaps best to leave it as-is? (just like with special chars)
-
It doesn't work for this case: "\'" -> '\\'' which is no longer a valid string :(
- 9 more replies
New conversation -
-
-
I don't need to handle backticks since I just switch between " and ', I leave template literals as is.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.