Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Sonya Telfair

Export wysiwyg text

When exporting a table where a field is from a wysiwyg editor, the code shows for paragraphs and tables. How can I remove that?

1 month ago
Stefan van den Dungen Gronovius
Developer

By default, HTML is not stripped in export. Our plugin does not know if this should be the case or now. For some use cases, the raw DB value with HTML might be needed. We do have some hooks available to change the value for export

https://github.com/codepress/admin-columns-hooks/blob/master/ac-export-value.php

The following snippet will strip all values from HTML in export, but you can check for specific columns in order to do this for specific columns only.
add_filter('ac/export/value', function ($value, AC\Column $column, $id) {
return strip_tags($value);
}, 10, 3);

1 month ago

You must be logged in to reply to this topic.