Unable to save text widgets with backslashes, always getting removed.
By brmoore, 7 years ago. Last reply by Alex S, 7 years ago
I’m attempting to save a text widget with backslashes, but they’re being removed no matter what. I’ve tried using the default WP text widget (the “arbitrary text widget” one), as well as created a custom widget with a single input. I’ve gotten close by adding a str_replace to replace all single backslashes with double backslashes,…