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

204
Views
No se puede hacer una nueva línea usando <br /> html

Tengo un problema para desglosar 1 línea usando <br /> , lo convertí a cadena pero no funciona. He seguido esta respuesta https://stackoverflow.com/questions/63574937/how-to-convert-html-string-into-plain-text-in-react para seguir la edición, todavía no funciona.

Este intl.formatMessage({ id: "AUTH.LOGIN.DESCRIPTION.1" }) es un System may takes some time to generate the email. Kindly login when you had received the email. <br /> Thank you for your understanding and apologise for the inconvenience caused.

 const htmlFormatMessage = intl.formatMessage({ id: "AUTH.LOGIN.DESCRIPTION.1" }); const htmlString = htmlFormatMessage; const plainString = htmlString.replace(/<br\/>/gi, '\n'); <p className="text-muted font-weight-bold"> {plainString} </p>

Ahora mi resultado se muestra a continuación:

img1

Quiero que el resultado real se muestre a continuación:

img2

about 4 years ago · Juan Pablo Isaza
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!