Hi @terrim,
Do you mean html in certain fields? If so you can use the gfexcel_field_value hook to do a strip_tags call over the value to remove them.
Hope this helps.
Thread Starter
terrim
(@terrim)
Hi @doekenorg
Thank you. I was hoping there was a way to strip HTML tags in all fields. Is there way to target them all? I just don’t want our excel download file to contain any HTML.
Thank you
Hi @terrim,
In that case something like this should work:
add_filter('gfexcel_field_value', function($value) {
if (!is_string($value)) {
return $value;
}
return strip_tags($value);
});
Haven’t tested it, but adding this to your themes functions.php should strip all HTML tags from every field.
Thread Starter
terrim
(@terrim)
Thank you so much, @doekenorg, it’s perfect!
@terrim you are most welcome. Enjoy!