diff --git a/classes/helpers/FrmXMLHelper.php b/classes/helpers/FrmXMLHelper.php index 4c63fe1bd2..83b5a493b7 100644 --- a/classes/helpers/FrmXMLHelper.php +++ b/classes/helpers/FrmXMLHelper.php @@ -926,6 +926,11 @@ public static function import_xml_views( $views, $imported ) { $post['post_content'] = self::switch_form_ids( $post['post_content'], $imported['forms'] ); + // Fix issue with line breaks appearing in descriptions as "rn". + if ( $post['post_type'] === $form_action_type ) { + $post['post_content'] = str_replace( '\\\\r\\\\n', '\\r\\n', $post['post_content'] ); + } + $old_id = $post['post_id']; self::populate_post( $post, $item, $imported );