Skip to main content

Filter: gk/gravityexport/renderer/csv/escape-formulas

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form_id

Example hook names:

  • gk/gravityexport/renderer/csv/escape-formulas (base hook)
  • gk/gravityexport/renderer/csv/escape-formulas_1 (with first modifier value)

Whether to prefix CSV cells that start with a formula character with a single quote.

Text cells that start with =, +, -, @ (after any spaces), a tab or a line break get the prefix, following the OWASP guidance on CSV injection. Plain numbers like -5 are never prefixed.

Parameters​

NameTypeDescription
$escapeboolWhether to prefix formula cells. Default: true.
$formarrayThe form object.

Since​

  • TBD: TBD

Source​

Defined in src/Renderer/AbstractPHPExcelRenderer.php at line 586