Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

390
Views
String strings with line breaks

I am working on a portal which allow the examiner to provide a problem statement along with sample input and sample output. The issue is that when value is added to the sample input/output section it is stored as a complete string and line breaks are not getting rendered on the candidate side. Let me show you an example to make it more clear:

enter image description here

enter image description here

You can see how the line breaks doesn't get rendered on the candidate side. What changes should i make which will allow me render text properly on client side. Frontend: React Backend: Nodejs

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can achieve desired result by using white-space: "pre-wrap".

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!