# Image in checkbox label

**URL:** <https://community.plotly.com/t/image-in-checkbox-label/21465>\
**Category:** Dash Python\
**Created:** [March 27, 2019, 12:27pm UTC](https://community.plotly.com/t/image-in-checkbox-label/21465 "2019-03-27T12:27:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradsbrown](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@bradsbrown](https://community.plotly.com/u/bradsbrown)\
**Post date:** [March 27, 2019, 12:27pm UTC](https://community.plotly.com/t/image-in-checkbox-label/21465/1 "2019-03-27T12:27:32Z")

</div>

So here’s the situation I’m facing:

I’ve got a modal popup for a “Report Builder” where I offer users a list of all the graphs on the page in checkbox lists (graph titles as labels currently). For all graphs selected, I use `orca` to generate static images, and build those into a PDF for the user to download so that they have a shareable report.

My next goal is to pre-build the images and show thumbnails of each next to the graph titles in the selector modal, but so far I can’t get the checkbox labels to include an image.

Doing something like

```
dcc.Checklist(options=[{"label": "My Graph <img src='https://via.placeholder.com/150'>", "value": "my_graph"}])

```

only yields a checklist item lableled `My Graph <img src='https://via.placeholder.com/150'>` rather than evaluating the img tag. Am I missing something obvious here, or is this not possible?

---

<div class="post-metadata">

**Author:** ![ElviraL](https://avatars.discourse-cdn.com/v4/letter/e/82dd89/32.png) [@ElviraL](https://community.plotly.com/u/ElviraL)\
**Post date:** [August 2, 2019, 12:49am UTC](https://community.plotly.com/t/image-in-checkbox-label/21465/2 "2019-08-02T00:49:10Z")

</div>

Hi bradsbrown,

I’m facing the same issue with radioitems, did you find a solution?

---

<div class="post-metadata">

**Author:** ![bradsbrown](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@bradsbrown](https://community.plotly.com/u/bradsbrown)\
**Post date:** [August 2, 2019, 2:09am UTC](https://community.plotly.com/t/image-in-checkbox-label/21465/3 "2019-08-02T02:09:46Z")

</div>

I never did - looks like it always escapes the HTML, so I ended up just putting my images above the selector list in a separate div.
