• I searched but could not find anything about this. Is there a way to avoid backslash characters being stripped out of a textarea in the resulting email? Or is this something built into WordPress core?

    Our contact form includes a textarea, such as:
    [textarea message placeholder "Your message"]

    However, the email we receive has backslashes stripped out. For example, if the user enters: Documents\FolderA, we receive DocumentsFolderA. This is a problem for Windows file paths.

    Any help is appreciated.

Viewing 1 replies (of 1 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    No, you can’t do this. It is built into PHP. You can leave backslashes by using double-backslash like Documents\\FolderA, but it won’t be a solution. How about suggesting users use normal slash (/) instead of backslash in a file path?

Viewing 1 replies (of 1 total)

The topic ‘Avoiding backslash processing in textarea’ is closed to new replies.