Created
October 21, 2021 10:33
-
-
Save wtmujeebu/9c81032cae67f1c6ba56428bb80d706e to your computer and use it in GitHub Desktop.
Escape backslash on CSV import when data contains slash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Do not copy this line | |
add_filter('wt_csv_raeder_csv_escape', 'wt_csv_raeder_csv_escape'); | |
function wt_csv_raeder_csv_escape($csv_escape){ | |
return '\\'; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment