# Improper HTML escaping in bot view

**URL:** <https://meta.discourse.org/t/improper-html-escaping-in-bot-view/66606>\
**Category:** Bug\
**Created:** [Juillet 21, 2017, 6: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:** 4

<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:** [Juillet 24, 2017, 11:36 UTC](https://meta.discourse.org/t/improper-html-escaping-in-bot-view/66606/4 "2017-07-24T23:36:09Z")

</div>

Changing `c.description` to `c.description.html_safe` here fixes it by letting html through

> <https://github.com/discourse/discourse/blob/main/app/views/categories/index.html.erb#L9>

Or changing `c.description` to `c.description_text` fixes it by making it plain text. I’m guessing the `.html_safe` version is the preferred one, but I can give you a pull request with either.

---

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