From 1f6a408cf301c5d4cb96af29d572355211c19a48 Mon Sep 17 00:00:00 2001 From: Matthieu Lempereur Date: Fri, 1 Nov 2024 18:54:50 +0100 Subject: [PATCH] add documentation for stripTags() function --- docs/table-features/exporting-data.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/table-features/exporting-data.md b/docs/table-features/exporting-data.md index 50c933c..e07e514 100644 --- a/docs/table-features/exporting-data.md +++ b/docs/table-features/exporting-data.md @@ -362,6 +362,23 @@ ID|Dish|Price --- +### stripTags() + +If you're using HTML when [formatting your data](/table-component/data-source-fields.html#formatting-data-examples), this allow to automatically strip HTML tags from file content when exporting, default to `false`. + +| Parameters | Description | +|------------------------|---------------------------| +| (boolean) $value | Strip tags when exporting | + +Example: + +```php +PowerGrid::exportable('my-export-file') + ->stripTags(true), +``` + +--- + ### csvDelimiter() See the [csvSeparator()](/table-features/exporting-data.html#csvseparator) example.