| @@ -96,9 +96,10 @@ | ||
| 96 | 96 | do_action('fluentform/inserted_new_form', $form->id, $data); |
| 97 | 97 | |
| 98 | 98 | return $form; |
| 99 | 99 | } catch (Exception $e) { |
| 100 | - throw new Exception(esc_html($e->getMessage())); | |
| 100 | + // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped -- surfaced as JSON by the REST layer, never echoed as HTML | |
| 101 | + throw new Exception($e->getMessage()); | |
| 101 | 102 | } |
| 102 | 103 | } |
| 103 | 104 | |
| 104 | 105 | /** |