# Nested table not show in outer table in HTML

**URL:** <https://forum.djangoproject.com/t/nested-table-not-show-in-outer-table-in-html/6506>\
**Category:** Using Django\
**Created:** [February 9, 2021, 5:40pm UTC](https://forum.djangoproject.com/t/nested-table-not-show-in-outer-table-in-html/6506 "2021-02-09T17:40:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![technqvi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/technqvi/32/1851_2.png) [@technqvi](https://forum.djangoproject.com/u/technqvi)\
**Post date:** [February 9, 2021, 5:40pm UTC](https://forum.djangoproject.com/t/nested-table-not-show-in-outer-table-in-html/6506/1 "2021-02-09T17:40:09Z")

</div>

Hi

I am facing an HTML rendering error.

file HTML have the table and I want to get data that contain text as an HTML table from the database to render as nested table in in HTML.

_{{ item.des }}_ item.des contain html table text to display.

It appears that , a nested table is not rendered as HTML. I view page source in Chrom.  
\< is shown `&lt;` and \> is shown `&gt;`

_this is result._

 ![image](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/2X/2/2dff7db6cf67991dfbfdf6ae40c4f5b50a664384.png)

_this is data to need to render in Detail column in HTML from databet_

 ![image](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/2X/9/9a74a4991cb74b6d516f3cbb6b6c86459860d4f9.png)

_view page source in Chrome._

 ![table2](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/2X/2/2de372b1f699743a8fb8014d7b46f88738ccf722.png)

this is my HTML file  
the following are javascript and css files that are referred in html

```auto
  <link rel="stylesheet" type="text/css" href="/static/app/content/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="/static/app/content/site.css" />
    <script src="/static/app/scripts/modernizr-2.6.2.js"></script>

   <script src="/static/app/scripts/jquery-1.10.2.js"></script>
    <script src="/static/app/scripts/bootstrap.js"></script>
    <script src="/static/app/scripts/respond.js"></script>

```

```auto

{% extends "app/layout.html" %}
{% load crispy_forms_tags %}
{% block content %}

    <h1>List Error</h1>

    <form method="get" autocomplete="on">
    <div class='row'>
        <div class='col-md-3'> {{ errorFilter.form.job_type| as_crispy_field }}</div>
        <div class='col-md-3'> {{ errorFilter.form.start_datetime__gt | as_crispy_field }}</div>
        <div class='col-md-3'> {{ errorFilter.form.end_datetime__lt| as_crispy_field }}</div>
        <div class='col-md-3'> {{ errorFilter.form.error_type| as_crispy_field }}</div>

    </div>
     <div >
            <center><br>
                   <button class="btn btn-primary" type="submit">Search</button>
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       <a href="{% url 'list_error' %}" class="cancel-link">Clear Search</a>
            </center>
     </div>

    </form>

        <h3>List Error</h3>
    {% if errorList %}

        <table class="table table-striped table-hover table-condensed">
            <tr>
                 <td scope="col">ID</td>
                <td scope="col">Detail</td>
                <td scope="col">Type</td>

                <td scope="col">Date</td>
                <td scope="col">JobTran</td>

            </tr>
        <tbody>
            {% for item in errorList %}
                <tr>
                <td scope="row">{{ item.id }}</td>
                <td >{{ item.des }}</td>
                <td>{{ item.type }}</td>

                <td>{{ item.created_date }}</td>
                <td>{{ item.transaction.id }}</td>

                <td><a href="{% url 'detail_error' item.id %}">View Detail</a></td>

            {% endfor %}
            </tr>
        </tbody>
        </table>
    {% endif %}

{% endblock %}

```

How to fix this problem.

Thank you.  
Pongthorn

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [February 10, 2021, 12:51pm UTC](https://forum.djangoproject.com/t/nested-table-not-show-in-outer-table-in-html/6506/2 "2021-02-10T12:51:10Z")

</div>

See the docs on [autoescape](https://docs.djangoproject.com/en/3.1/ref/templates/builtins/#autoescape) and [safe](https://docs.djangoproject.com/en/3.1/ref/templates/builtins/#safe).
