• Home
  • Jobs
  • Courses
  • Questions
  • Teachers
  • For business
  • ES/EN

0

43
Views
How to bind textarea line breaks to a variable in Svelte?

I have a textarea in a Svelte component, and its value binds to a variable "content". I want line breaks to be bound to the string.

Currently, if I type the following in the text area:

"Hello,
World"

The variable "content" takes the value "Hello,World" - without the line break.

How could I include the line break?

about 1 month ago ·

Juan Pablo Isaza

Answer question
Find remote jobs
Loading

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2022 PeakU Inc. All Rights Reserved.