Skip to content

Commit eac908c

Browse files
Merge pull request #123 from MrYamous/documentation-pr1745
Add documentation for stripTags() function
2 parents a859dd0 + 1f6a408 commit eac908c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/table-features/exporting-data.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,23 @@ ID|Dish|Price
364364

365365
---
366366

367+
### stripTags()
368+
369+
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`.
370+
371+
| Parameters | Description |
372+
|------------------------|---------------------------|
373+
| (boolean) $value | Strip tags when exporting |
374+
375+
Example:
376+
377+
```php
378+
PowerGrid::exportable('my-export-file')
379+
->stripTags(true),
380+
```
381+
382+
---
383+
367384
### csvDelimiter()
368385

369386
See the [csvSeparator()](/table-features/exporting-data.html#csvseparator) example.

0 commit comments

Comments
 (0)