[ 'required', 'string', 'max:5000', ], ]; // Sanitize the text input $sanitizedText = $request->text; $sanitizedText = strip_tags($sanitizedText, '