Firstly, please delete the old duplicated thread: https://laracasts.com/discuss/channels/laravel/laravel-vite-issue-1
Please show the part of the code the produces that issue, I don't think it's related to Vite because it points to htmlspecialchars() which is a PHP method.
Mostly you're using {{ }} in a wrong way.