# HTML Entity Display Bug

**URL:** <https://forum.beeminder.com/t/html-entity-display-bug/7678>\
**Category:** Bugabee\
**Created:** [January 10, 2021, 7:57pm UTC](https://forum.beeminder.com/t/html-entity-display-bug/7678 "2021-01-10T19:57:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![k1rsty](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/k1rsty/32/3165_2.png) [@k1rsty](https://forum.beeminder.com/u/k1rsty)\
**Post date:** [January 10, 2021, 7:57pm UTC](https://forum.beeminder.com/t/html-entity-display-bug/7678/1 "2021-01-10T19:57:09Z")

</div>

Under recent data on my main beeminder page I see the comments displayed including the ampersand and semicolon that make up the HTML entity e.g.

> 09 1 "Q&amp;a"

The original comment I made here was just “Q&A” and the code I’ve just put into this forum page is cut’n’pasted from Beeminder’s source code.

---

<div class="post-metadata">

**Author:** ![dreev](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/dreev/32/4311_2.png) [@dreev](https://forum.beeminder.com/u/dreev)\
**Post date:** [January 10, 2021, 10:45pm UTC](https://forum.beeminder.com/t/html-entity-display-bug/7678/2 "2021-01-10T22:45:15Z")

</div>

Nice catch! Thank you!

(This earns you [stickers](http://dreev.es/stickers). DM us a postal address if you’d like them!)

---

<div class="post-metadata">

**Author:** ![ianminds](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/ianminds/32/4188_2.png) [@ianminds](https://forum.beeminder.com/u/ianminds)\
**Post date:** [October 1, 2021, 5:23pm UTC](https://forum.beeminder.com/t/html-entity-display-bug/7678/3 "2021-10-01T17:23:58Z")

</div>

I came here to report the same. Seems it hasn’t been fixed or it has regressed?

I’m trying out a goal where I was planning to extensively use ampersands in the comments, so hopefully it’s an easy fix! Thanks for looking into it.

See also [Dashboard shows special character ampersand escaped](https://forum.beeminder.com/t/dashboard-shows-special-character-ampersand-escaped/9495)

ETA: To be clear, I only see the escaped ampersand on [Beeminder](https://www.beeminder.com/ianminds#) and on the goal detail page in the iOS app. On the website’s goal detail page, the ampersand shows up as it should.

---

<div class="post-metadata">

**Author:** ![shanaqui](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/shanaqui/32/3513_2.png) [@shanaqui](https://forum.beeminder.com/u/shanaqui)\
**Post date:** [October 1, 2021, 6:32pm UTC](https://forum.beeminder.com/t/html-entity-display-bug/7678/4 "2021-10-01T18:32:56Z")

</div>

Alas, it isn’t an easy fix, but I confirm it’s on the radar! Thanks for letting us know it was bothersome for you – it’s always helpful to get an idea of the effect of issues like this.

---

<div class="post-metadata">

**Author:** ![dreev](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/dreev/32/4311_2.png) [@dreev](https://forum.beeminder.com/u/dreev)\
**Post date:** [October 5, 2021, 10:30pm UTC](https://forum.beeminder.com/t/html-entity-display-bug/7678/5 "2021-10-05T22:30:16Z")

</div>

> [@shanaqui](#):
>
> Alas, it isn’t an easy fix

Nicky has stumbled upon the secret to goading us into fixing something!

Voila: [http://beeminder.com/changelog#3901](http://beeminder.com/changelog#3901)

---

<div class="post-metadata">

**Author:** ![shanaqui](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/shanaqui/32/3513_2.png) [@shanaqui](https://forum.beeminder.com/u/shanaqui)\
**Post date:** [October 5, 2021, 10:37pm UTC](https://forum.beeminder.com/t/html-entity-display-bug/7678/6 "2021-10-05T22:37:43Z")

</div>

> [@dreev](#):
>
> Nicky has stumbled upon the secret to goading us into fixing something!

It sounds a lot like the way to goad _me_ into doing something…

---

<div class="post-metadata">

**Author:** ![ianminds](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/ianminds/32/4188_2.png) [@ianminds](https://forum.beeminder.com/u/ianminds)\
**Post date:** [October 6, 2021, 2:01pm UTC](https://forum.beeminder.com/t/html-entity-display-bug/7678/7 "2021-10-06T14:01:21Z")

</div>

Thanks @dreev! I already noticed it 😉 I also noticed some fun in-between state a couple of days ago, so I was pretty sure you were working on it (but maybe it was always like that). ![1ZznViJh0Y](https://us1.discourse-cdn.com/flex019/uploads/beeminder/original/2X/3/3329bf5c8ae716c6540e4a9f77ec99314263d835.gif)

I’m guessing the iOS app is even a harder fix? 😛 Just checking if that one is still on the radar!

---

<div class="post-metadata">

**Author:** ![k1rsty](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/k1rsty/32/3165_2.png) [@k1rsty](https://forum.beeminder.com/u/k1rsty)\
**Post date:** [October 6, 2021, 2:17pm UTC](https://forum.beeminder.com/t/html-entity-display-bug/7678/8 "2021-10-06T14:17:43Z")

</div>

I noticed the fix on a goal where I’m using “-\>” in the data which now displays nicely despite the changelog only mentioning & so thank you!

This is probably barely worth mentioning but I accidentally submitted a datapoint with just a newline recently and that appears as “\n” which might be confusing to users who don’t understand control characters. Though I’m not actually sure what the best thing to display for that in a single line summary would be anyway.

---

<div class="post-metadata">

**Author:** ![rperce](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/rperce/32/4197_2.png) [@rperce](https://forum.beeminder.com/u/rperce)\
**Post date:** [October 8, 2021, 4:26pm UTC](https://forum.beeminder.com/t/html-entity-display-bug/7678/9 "2021-10-08T16:26:15Z")

</div>

I would expect to not be able to get a newline in the datapoint at all, or if it somehow got in there, have it displayed as just a space.

---

<div class="post-metadata">

**Author:** ![dreev](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/dreev/32/4311_2.png) [@dreev](https://forum.beeminder.com/u/dreev)\
**Post date:** [October 14, 2021, 8:16pm UTC](https://forum.beeminder.com/t/html-entity-display-bug/7678/10 "2021-10-14T20:16:36Z")

</div>

> [@k1rsty](#):
>
> I accidentally submitted a datapoint with just a newline recently and that appears as “\n”

Interesting! Any chance you can figure out how to reproduce that? We’re failing to find a way to add a newline to a comment…

---

<div class="post-metadata">

**Author:** ![zzq](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/zzq/32/6471_2.png) [@zzq](https://forum.beeminder.com/u/zzq)\
**Post date:** [October 15, 2021, 7:30am UTC](https://forum.beeminder.com/t/html-entity-display-bug/7678/11 "2021-10-15T07:30:06Z")

</div>

I can reproduce it via the API: if I submit a datapoint with a newline in it (via the API), Beeminder displays it as `\n`.

---

<div class="post-metadata">

**Author:** ![k1rsty](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/k1rsty/32/3165_2.png) [@k1rsty](https://forum.beeminder.com/u/k1rsty)\
**Post date:** [October 15, 2021, 10:31am UTC](https://forum.beeminder.com/t/html-entity-display-bug/7678/12 "2021-10-15T10:31:28Z")

</div>

Yep, I did it via the API too, `comment` on `datapoints.json` is just a string so you can send something with a newline in it. If that’s the only way to do it then I’d suggest just removing them on Beeminder’s end and documenting that that’s what’ll happen.

---

<div class="post-metadata">

**Author:** ![dreev](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/dreev/32/4311_2.png) [@dreev](https://forum.beeminder.com/u/dreev)\
**Post date:** [October 15, 2021, 11:23pm UTC](https://forum.beeminder.com/t/html-entity-display-bug/7678/13 "2021-10-15T23:23:42Z")

</div>

> [@k1rsty](#):
>
> just removing them on Beeminder’s end

Thanks for figuring this out, y’all! Arguably removing them violates [anti-magic](https://blog.beeminder.com/magic "The Anti-Magic Principle") and if you’re doing this via the API then will you really be confused by seeing it rendered as “\n”? If I’m wrong then my preferred fix would probably be for the API to give an error if you try to include such characters, per [anti-robustness](https://blog.beeminder.com/postel "The Anti-Robustness Principle").
