I'm using this Gform notification format found in the documentation to send plain text to the admin user. However break tags <br />
are showing up if the user enters a hard return. Is there a way to strip out the break tags?
// Set form to send plain text to admin
add_action("gform_notification_format_1", "set_notification_format", 10, 4);
function set_notification_format($format, $notification_type, $form, $lead){
if($notification_type == "admin")
return "text"; //setting admin notifications as text
else
return "html"; //setting user notifications as text
}