Gravity form entries showing code instead of the table in html, how do I fix it?Gravity form entries showing code

As per the new version of the Gravity Forms plugin and taking care of security, they have changed the way they are storing information in the database. SO need to apply filter, to show back in the html. Please use the following code and place it in functions.php of your active theme:

add_filter( 'gform_entry_field_value', 'undo_kses', 10, 4 );

function undo_kses( $value, $field, $lead, $form ) { 

// apply only to form 2 and field 7 in form 2

if ( $form['id'] != 2 || $field->id != 7 ) return $value;  return htmlspecialchars_decode( $value ); 


Now replace 2 with form ID and 7 with Field ID.