Filter the content before merge tags are replaced.
add_filter( 'gpps_pre_replace_merge_tags', 'my_custom_function', 10, 3 );
The content that will have merge tag replacement ran on it.
The current form object.
The current entry.
This filter is available since Gravity Forms Preview Submission 1.2.14.