# Subscript HTML Not Rendering correctly in Report Module

**URL:** <https://forum.inductiveautomation.com/t/subscript-html-not-rendering-correctly-in-report-module/33481>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [March 27, 2020, 2:00pm UTC](https://forum.inductiveautomation.com/t/subscript-html-not-rendering-correctly-in-report-module/33481 "2020-03-27T14:00:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [March 27, 2020, 2:00pm UTC](https://forum.inductiveautomation.com/t/subscript-html-not-rendering-correctly-in-report-module/33481/1 "2020-03-27T14:00:25Z")

</div>

In 7.9.13 we are building some new reports that have some text blocks stored in a DB. The content is HTML that is rendered in a text box in the report.

I’m trying to use sub-script tag and it is no rendering properly, it seems reporting never sees the close tag. Any other way of passing a subscript in from the DB?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/4f47ce71b817fff39d90eaadff81331510cf0cd0.png)

```auto
<html>
<ul>
    <li>Pocket centerlines to cavity center, not to pocket detection hole</li>
    <li>A<sub>0</sub> and B<sub>0</sub> measured 0.3 mm above bottom of pocket.</li>
    <li>Reference EIA 481.</li>
</ul>
</html>

```

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 27, 2020, 2:53pm UTC](https://forum.inductiveautomation.com/t/subscript-html-not-rendering-correctly-in-report-module/33481/2 "2020-03-27T14:53:29Z")

</div>

Hm, reporting might be re-escaping the HTML at some point - or has a problem with the slash in the closing tag. Do you get the same result if you use `//` in the database, or add a newline (not a `<br>`) after the `</sub>`?

For a workaround, if the subscripts are always numeric, you could try parsing your HTML and replacing it with literal substring characters: [https://en.wikipedia.org/wiki/Unicode\_subscripts\_and\_superscripts#Superscripts\_and\_subscripts\_block](https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts#Superscripts_and_subscripts_block)

If you’ve always got fairly simple input, then it’d be within the domain of a regex (insert standard caveat about parsing HTML with a regular expression here).

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [March 27, 2020, 3:25pm UTC](https://forum.inductiveautomation.com/t/subscript-html-not-rendering-correctly-in-report-module/33481/3 "2020-03-27T15:25:27Z")

</div>

Yes, something in reports doing weird escaping… when I // I get below. Also tried a new line and no change…

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/221ad82ffbbedb921bcf8cb0d78b7cbc99785cde.png)

I just tried the Unicode U+2080, but that doesn’t want to render in the font, so would need to play with fonts to get that to work. ☹

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 27, 2020, 3:41pm UTC](https://forum.inductiveautomation.com/t/subscript-html-not-rendering-correctly-in-report-module/33481/4 "2020-03-27T15:41:02Z")

</div>

What about `&#x2080;` (₀)? Same rendering behavior?

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [March 27, 2020, 3:57pm UTC](https://forum.inductiveautomation.com/t/subscript-html-not-rendering-correctly-in-report-module/33481/5 "2020-03-27T15:57:40Z")

</div>

Woo hoo!

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/02e7bc2b1a8ad2169f93808600e2efa05c91c42c.png)

```auto
<html>
<ul>
    <li>Pocket centerlines to cavity center, not to pocket detection hole</li>
    <li>A&#x2080; and B&#x2080; measured 0.3 mm above bottom of pocket.</li>
    <li>Reference EIA 481.</li>
</ul>
</html>

```
