| Server IP : 13.235.167.51 / Your IP : 216.73.217.116 Web Server : Apache System : Linux machinox-server 6.17.0-1013-aws #13~24.04.1-Ubuntu SMP Fri Apr 24 21:36:58 UTC 2026 aarch64 User : root ( 0) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/machinox.in/wp-content/plugins/wpforms/src/Pro/Helpers/ |
Upload File : |
<?php
namespace WPForms\Pro\Helpers;
/**
* CSV related helper methods.
*
* @since 1.7.7
*/
class CSV {
/**
* Formulas start characters.
*
* @since 1.7.7
*
* @var array
*/
const FORMULAS_START_CHARS = [ '=', '-', '+', '@', "\t", "\r" ];
/**
* Escape string for CSV.
*
* @since 1.7.7
*
* @param mixed $value Value to escape.
*
* @return string
*/
public function escape_value( $value ) {
// Prevent formulas in spreadsheet applications.
if ( in_array( substr( (string) $value, 0, 1 ), self::FORMULAS_START_CHARS, true ) ) {
$value = "'" . $value;
}
return html_entity_decode( $value, ENT_QUOTES );
}
}