# Excerpt gets too long under certain circumstances: "ActiveRecord::ValueTooLong"

**URL:** <https://meta.discourse.org/t/excerpt-gets-too-long-under-certain-circumstances-activerecord-valuetoolong/77579>\
**Category:** Bug\
**Created:** [9 يناير 2018، 1:28م UTC](https://meta.discourse.org/t/excerpt-gets-too-long-under-certain-circumstances-activerecord-valuetoolong/77579 "2018-01-09T13:28:45Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [12 مارس 2018، 4:28م UTC](https://meta.discourse.org/t/excerpt-gets-too-long-under-certain-circumstances-activerecord-valuetoolong/77579/10 "2018-03-12T16:28:32Z")

</div>

I fixed the length calculation when the excerpt contains details blocks:  
[FIX: Calculation of text length for \<details\> in excerpt was wrong · discourse/discourse@d243b82 · GitHub](https://github.com/discourse/discourse/commit/d243b82fb3c9ac3944a549f329fd3522a4747e5d)

There’s still a chance that lots of small details blocks or a combination of other HTML tags could bring you over the 1000 character limit, but it’s a lot less likely. Fixing this completely would require removal of the column’s length limit.

---

_[View the full topic](https://meta.discourse.org/t/excerpt-gets-too-long-under-certain-circumstances-activerecord-valuetoolong/77579)._
