# Hovertool Displaying value contains symbol &

**URL:** <https://discourse.bokeh.org/t/hovertool-displaying-value-contains-symbol/7664>\
**Category:** Community Support\
**Tags:** hover\
**Created:** [April 21, 2021, 9:42am UTC](https://discourse.bokeh.org/t/hovertool-displaying-value-contains-symbol/7664 "2021-04-21T09:42:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhlearn](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/mhlearn/32/1375_2.png) [@mhlearn](https://discourse.bokeh.org/u/mhlearn)\
**Post date:** [April 21, 2021, 9:42am UTC](https://discourse.bokeh.org/t/hovertool-displaying-value-contains-symbol/7664/1 "2021-04-21T09:42:04Z")

</div>

hi, on the hover tool, cannot get the value display properly when it contains symbol &.

here the setup tip. have tried set up with and without {}, both gave same result.  
hover\_tip=[(“voucher id”,"@voucher\_id"),  
(“voucher name”,"@{voucher\_name}"),  
]

screenshot of the column value, showing value contains symbol &.  
 ![bokeh_value contains special &](https://discourse-uploads.bokeh.org/original/2X/5/54f8b04ea03fbe69950cf6e7032cfbaca12cd38f.jpeg)

screenshot of the chart when hover, showing the error  
 ![chart_hover_special symbol error](https://discourse-uploads.bokeh.org/original/2X/5/5ce6c127fe8aa3dc77ac518e550c9b89618bb8fe.jpeg)

i am running the code on JupyterLab and Firefox. not sure it is to do with browser and bokeh, or there is way to overcome it.

---

<div class="post-metadata">

**Author:** ![Bryan](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/bryan/32/3625_2.png) [@Bryan](https://discourse.bokeh.org/u/Bryan)\
**Post date:** [April 24, 2021, 7:36am UTC](https://discourse.bokeh.org/t/hovertool-displaying-value-contains-symbol/7664/2 "2021-04-24T07:36:05Z")

</div>

_[Reposting after data loss during a site recovery_

@mhlearn you need to add the `{safe}` tag to prevent escaping

```python
("voucher name","@{voucher_name}{safe}"),

```

---

<div class="post-metadata">

**Author:** ![mhlearn](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/mhlearn/32/1375_2.png) [@mhlearn](https://discourse.bokeh.org/u/mhlearn)\
**Post date:** [April 25, 2021, 7:54am UTC](https://discourse.bokeh.org/t/hovertool-displaying-value-contains-symbol/7664/3 "2021-04-25T07:54:59Z")

</div>

tested and it is working. thanks a lot. this is first time i come across {safe}, checked back bokeh doc and found it under custom tooltip [Configuring plot tools — Bokeh 2.4.2 Documentation](https://docs.bokeh.org/en/latest/docs/user_guide/tools.html#custom-tooltip). thanks @Bryan
