Backslashes disappearing
-
Plugin does just what I want, except for one issue it took me a while to find.
I’m adding JS to a particular page. The code includes a regex valdation, like /\d{1,3}/.test(value). When I save the page, the backslashes are removed and don’t show up when the page is rendered on my website. Obviously, this changes the regex.
I tried using two backslashes. This got everything to work, since only one of the two got removed on save. But when I edited the page again, my code only showed a single backslash, and when I saved the page, that one got removed as well.
I was able to work around this by using [0-9] instead of \d, but it would be nice to see this addressed.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Backslashes disappearing’ is closed to new replies.