[Vuejs]-VueJS โ€“ also submit line breaks at the beginning and end of a textarea

0๐Ÿ‘

โœ…

I found the solution. I actually should have mentioned that I am using the Laravel framework which is trimming all incoming request strings automatically with a middleware.

After commenting out the

\App\Http\Middleware\TrimStrings::class

in Kernel.php I disabled the auto-trim. Now I have my desired line breaks.

Leave a comment