What potential issue was identified with the textarea in the PHP code?

The potential issue identified with the textarea in the PHP code is that it is not properly escaping user input, which can lead to security vulnerabilities such as cross-site scripting (XSS) attacks. To solve this issue, we need to use the htmlspecialchars function to escape the user input before displaying it in the textarea.

<textarea name="message"><?php echo htmlspecialchars($_POST['message'] ?? '', ENT_QUOTES); ?></textarea>