Lost Backslashes
-
Dear Ladies and Gentlemen,
i have a litte issue with backslashes and save. I try to enter a regex in a script tag on a page, but the Classic-Editor-Plugin removes the char: “\” ( U+005C or \) by saving.
For exemple
$(“#XXX”).val().replace(/(?:\r\n|\r|\n)/g, ‘<br>’)
will be saved as
$(“#XXX”).val().replace(/(?:rn|r|n)/g, ‘<br>’)If you save the changes the count of backslashs will reduced by half in the database.
It is reproducible under a XAMPP windows pc and a Ubuntu 19.04 LAMPP setup.
I use WordPress Version 5.1.1 and Plugin classic Editor Version 3.25If you write it manual in a js/css file the backslash count is not toutched.
Have you any suggestion to resolve the Issue?
Best reagards
Collie-IT
- The topic ‘Lost Backslashes’ is closed to new replies.