Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There is a 'TODO' note in the CsvEncoder
about making the HTML-stripping and trimming behaviour configurable. Well, here's a patch that provides that, including taking them from views where available, just like as with the delimiter etc that get passed through via setSettings()
....
Comment | File | Size | Author |
---|---|---|---|
#3 | interdiff-2846402-2-3.txt | 571 bytes | james.williams |
#3 | csv_serialization-configurableness-2846402-2.patch | 2.28 KB | james.williams |
Comments
Comment #2
james.williams CreditAttribution: james.williams at ComputerMinds commentedPatch :-)
Comment #3
james.williams CreditAttribution: james.williams at ComputerMinds commentedSorry, that was missing the use of the trim setting - here's the fixed patch & interdiff.
Comment #4
GrimreaperHello,
Thanks for the patch. It works and It also solved the bug from #2836527: body with html markup
Comment #7
grasmash CreditAttribution: grasmash commented