# Improper HTML escaping in bot view

**URL:** <https://meta.discourse.org/t/improper-html-escaping-in-bot-view/66606>\
**Category:** Bug\
**Created:** [21. Juli 2017 um 18:20 UTC](https://meta.discourse.org/t/improper-html-escaping-in-bot-view/66606 "2017-07-21T18:20:30Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)\
**Post date:** [21. Juli 2017 um 18:20 UTC](https://meta.discourse.org/t/improper-html-escaping-in-bot-view/66606/1 "2017-07-21T18:20:30Z")

</div>

I noticed this on @y2k’s site, [https://army.community/](https://army.community/), and have since seen it on some other sites, like [https://discuss.codecademy.com/](https://discuss.codecademy.com/).

I visited Y2k’s site in lynx, to check connectivity (turns out it was down). Later when it came back up, I visited again in lynx and saw HTML tags on the page. Tags that were not visible when I visited in a browser that knows Javascript.

Here’s what I’m seeing right now on Codeacademy’s top level page in lynx:

```plaintext
JavaScript

   JavaScript is an essential web technology, adding interactivity to the
   structure and style of <a
   href="https://discuss.codecademy.com/c/web">HTML and CSS</a>. This
   forum category covers the Codecademy courses <a
   href="https://www.codecademy.com/learn/learn-javascript?utm_source=foru
   ms_to_main&amp;utm_medium=category_description">Learn JavaScript</a>
   and <a
   href="https://www.codecademy.com/learn/javascript?utm_source=forums_to_
   main&amp;utm_medium=category_description">JavaScript</a>.

```

Visiting the page in Firefox, those links are actually links, not escaped HTML.This view of the page won’t be seen by most humans, but will be seen by at least some bots. The escaped html is visible in ‘view source’ in Firefox (long line wrapped)

```html
<span itemprop='description'>JavaScript is an essential web technology, adding
interactivity to the structure and style of &lt;a
href=&quot;https://discuss.codecademy.com/c/web&quot;&gt;HTML and
CSS&lt;/a&gt;. This forum category covers the Codecademy courses &lt;a
href=&quot;https://www.codecademy.com/learn/learn-javascript?utm_source=forums_to_main&amp;amp;utm_medium=category_description&quot;&gt;Learn
JavaScript&lt;/a&gt; and &lt;a
href=&quot;https://www.codecademy.com/learn/javascript?utm_source=forums_to_main&amp;amp;utm_medium=category_description&quot;&gt;JavaScript&lt;/a&gt;.</span>

```

(Separately, I’m wondering what the syntax highlighter thinks it is doing here. I’ve specified “html” on the code fence.)

---

_[View the full topic](https://meta.discourse.org/t/improper-html-escaping-in-bot-view/66606)._
