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

356
Views
¿Por qué <br> no se muestra como línea de ruptura en html?

Estoy usando un matraz para realizar solicitudes y mostrar resultados en una página html en mi navegador:

 @api.route('/matcher', methods=['GET']) def matcher(): mid = request.args.get('id') text = get_text(id) parameter_data = {'enable': ['matcher']} result_dict = nlu.get_result(text, **parameter_data) return jsonify(result_dict)

La función get_result devuelve un dict, algo como a continuación:

 { "text": "This is a test", "log": "log1 <br>log2<br>log3<br>", "tags": { "primary_tags": [], "aux_tags": [], } }

Espero que
La etiqueta en el 'registro' archivado funcionará como una línea de interrupción cuando realizo una solicitud en mi navegador, pero parece que no se interpreta como una 'línea de interrupción' de etiqueta html. No hay línea de corte en la pantalla html.

¿Cómo puedo arreglarlo?

El código para inyectar
:

 doc.log['log'] = '<br>'.join(self.log)
about 4 years ago · Santiago Gelvez
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!