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

370
Views
Why isn't <br> displayed as break line in html?

I am using a flask to make requests and display results in html page in my browser:

@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)

The function get_result returns a dict, something as below:

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

I hope the
tag in the filed 'log' will function as a break line when I make a request in my browser, but it seems it isn't interpreted as a html tag 'break line'. There is no break line in the html display.

How can I fix it?

The code to inject
:

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!