python - integrate html into django template -
in django model have store html info string
item = rocketuitem(text=text, page_url=url, page_number=page_number, page_down=page_down)
and text =
<section> <h2>object-oriented python , beginner django</h2> <ul>
when pull in template utilize ..
{% page in pages %} <div>{{ page.page_url|safe }}</div>> <div> {{ page.text|safe }}
i m using safe dosent display $lt etc [basically '<' gets converted < if dont utilize it] wht see @ output on page
<section> <h2>object-oriented python , beginner django</h2> <ul>
what want code fro 'text' part of div formatting , show..
object-oriented python , beginner django
how do ..
the safe
filter should plenty render text html in recent versions of django
. seek using:
{% autoescape off %} {{ content }} {% end autoescape %}
tags , see if works you.
python django django-templates
No comments:
Post a Comment