• totallytech

    (@totallytech)


    Hey,

    I running a small section of code using your plugin, however for some reason I add code, but when I click save it has changed my code and removed a “\” character

    This is my code

    preg_replace('/\s+/', '', $postcode);

    but it changes it to:

    preg_replace('/s+/', '', $postcode);

    Any ideas why the plugin would be ignoring the \ in /\s+/ ?

    https://www.ads-software.com/plugins/custom-css-js-php/

Viewing 1 replies (of 1 total)
  • Thread Starter totallytech

    (@totallytech)

    ok, I’ve just checked the database and its showing the full code, so there must be something refusing to show the \

    preg_replace('/\s+/', '', $postcode);

Viewing 1 replies (of 1 total)
  • The topic ‘code being changed after saving’ is closed to new replies.