Python Forum
Jinja2 HTML <a> tags not rendering properly
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Jinja2 HTML <a> tags not rendering properly
#2
Why are you generating HTML to pass to your template in the first place? Why aren't you passing a list of values and generating the HTML in the template? That's how you're supposed to do it. Jinja is escaping the HTML basically because it doesn't expect you to be passing HTML..
Reply


Messages In This Thread
RE: Jinja2 HTML <a> tags not rendering properly - by ndc85430 - Jun-28-2020, 05:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Python Obstacles | Jeet-Kune-Do | BS4 (Tags > MariaDB) [URL/Local HTML] BrandonKastning 0 1,434 Feb-08-2022, 08:55 PM
Last Post: BrandonKastning
  HTML multi select HTML listbox with Flask/Python rfeyer 0 4,692 Mar-14-2021, 12:23 PM
Last Post: rfeyer
  Any way to remove HTML tags from scraped data? (I want text only) SeBz2020uk 1 3,511 Nov-02-2020, 08:12 PM
Last Post: Larz60+
  Easy HTML Parser: Validating trs by attributes several tags deep? runswithascript 7 3,635 Aug-14-2020, 10:58 PM
Last Post: runswithascript
  Python3 + BeautifulSoup4 + lxml (HTML -> CSV) - How to loop to next HTML/new CSV Row BrandonKastning 0 2,398 Mar-22-2020, 06:10 AM
Last Post: BrandonKastning
  Problem rendering file .css? JohnnyCoffee 4 2,581 Oct-11-2019, 07:31 PM
Last Post: JohnnyCoffee
  How do I get rid of the HTML tags in my output? glittergirl 1 3,759 Aug-05-2019, 08:30 PM
Last Post: snippsat
  Beutifulsoup: how to pick text that's not in HTML tags? pitonas 4 4,757 Oct-08-2018, 01:43 PM
Last Post: pitonas
  [split] Jinja2 Exception Cookies 1 2,259 Jul-26-2018, 12:09 AM
Last Post: ichabod801
  Paginate json data in flask or jinja2 soli1994 1 8,337 Jun-28-2018, 06:00 PM
Last Post: gontajones

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020