HTML tags showing in receipts [RESOLVED]

I am having an issue where the HTML markup tags are showing email receipts.


The field in question is a OPTION field and the HTML code is in the label and value field.

To be clear, this is only appearing on the email receipts. It looks fine on the screen.

Any ideas?

Hi Barry. This is a known issue and the product team are working on a fix. In the meantime, you can add this small bit of code to strip out the HTML from the product summary:

add_filter( 'gform_order_summary', function( $markup, $form, $entry, $order_summary, $format ) {

    GFCommon::log_debug( current_filter() . ': running hotfix for GH#2468' );
    return html_entity_decode( $markup );

}, 10, 5 );

This is PHP code that can be added to your theme functions.php file, or you can use a plugin such as this one to keep the code separate from the theme: Code Snippets – WordPress plugin |

Please see this article for additional information on placing PHP snippets:

1 Like

Thanks for answer!!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.