Title: Remove HTML
Last modified: August 24, 2020

---

# Remove HTML

 *  Resolved [terrim](https://wordpress.org/support/users/terrim/)
 * (@terrim)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/remove-html/)
 * Hi
 * Is there a way to remove HTML (in my case, bold tags) from the excel download
   automatically?
 * Many thanks

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Doeke Norg](https://wordpress.org/support/users/doekenorg/)
 * (@doekenorg)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/remove-html/#post-13303237)
 * Hi [@terrim](https://wordpress.org/support/users/terrim/),
 * Do you mean html in certain fields? If so you can use the [gfexcel_field_value](https://gfexcel.com/docs/changing-values)
   hook to do a `strip_tags` call over the value to remove them.
 * Hope this helps.
 *  Thread Starter [terrim](https://wordpress.org/support/users/terrim/)
 * (@terrim)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/remove-html/#post-13303433)
 * Hi [@doekenorg](https://wordpress.org/support/users/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
 *  Plugin Author [Doeke Norg](https://wordpress.org/support/users/doekenorg/)
 * (@doekenorg)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/remove-html/#post-13304349)
 * Hi [@terrim](https://wordpress.org/support/users/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](https://wordpress.org/support/users/terrim/)
 * (@terrim)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/remove-html/#post-13304675)
 * Thank you so much, [@doekenorg](https://wordpress.org/support/users/doekenorg/),
   it’s perfect!
 *  Plugin Author [Doeke Norg](https://wordpress.org/support/users/doekenorg/)
 * (@doekenorg)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/remove-html/#post-13304697)
 * [@terrim](https://wordpress.org/support/users/terrim/) you are most welcome. 
   Enjoy!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove HTML’ is closed to new replies.

 * ![](https://ps.w.org/gf-entries-in-excel/assets/icon.svg?rev=3434379)
 * [GravityExport Lite for Gravity Forms](https://wordpress.org/plugins/gf-entries-in-excel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gf-entries-in-excel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gf-entries-in-excel/)
 * [Active Topics](https://wordpress.org/support/plugin/gf-entries-in-excel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gf-entries-in-excel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gf-entries-in-excel/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Doeke Norg](https://wordpress.org/support/users/doekenorg/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/remove-html/#post-13304697)
 * Status: resolved